OnaholeMotion.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class OnaholeMotion : MonoBehaviour
  5. {
  6. private bool IsFinish
  7. {
  8. get
  9. {
  10. return this.finishFlag;
  11. }
  12. }
  13. public void SetOwner(OnaholeCharaManager owner)
  14. {
  15. this.charaMgr = owner;
  16. }
  17. public OnaholeMotion.MODE GetMode()
  18. {
  19. return this.mode;
  20. }
  21. public OnaholeMotion.ANIM_TYPE GetAnimType()
  22. {
  23. return this.playAnime;
  24. }
  25. public OnaholeMotion.PISTON_MODE GetPistonMode()
  26. {
  27. return this.pistonMode;
  28. }
  29. private bool IsNextModePermit
  30. {
  31. get
  32. {
  33. return this.nextModePermit;
  34. }
  35. }
  36. public static readonly string[] animeTypeNameArray = new string[]
  37. {
  38. "NON",
  39. "待機",
  40. "挿入",
  41. "ピストン",
  42. "抜き",
  43. "ピストン深い",
  44. "射精(中)",
  45. "射精後(中)",
  46. "射精IN(中)",
  47. "射精(外)",
  48. "射精後(外)",
  49. "射精IN(外)"
  50. };
  51. private OnaholeCharaManager charaMgr;
  52. private TBody tBody;
  53. [SerializeField]
  54. private OnaholeMotion.MODE mode = OnaholeMotion.MODE.WAIT;
  55. [SerializeField]
  56. private MaidTouch.POINT activeSexMode;
  57. private OnaholeMotion.ANIM_TYPE playAnime;
  58. private OnaholeMotion.ANIM_TYPE shaseiType;
  59. private AnimationState lastAnime;
  60. [SerializeField]
  61. private OnaholeMotion.PISTON_MODE pistonMode = OnaholeMotion.PISTON_MODE.PISTON;
  62. private Dictionary<MaidTouch.POINT, OnaholeMotion.MoitonScriptData> motionScriptDataDic = new Dictionary<MaidTouch.POINT, OnaholeMotion.MoitonScriptData>();
  63. private Dictionary<MaidTouch.POINT, OnaholeMotion.BlendAnimeData> blendAnimeDic = new Dictionary<MaidTouch.POINT, OnaholeMotion.BlendAnimeData>();
  64. private Animation anime;
  65. private Dictionary<string, string> pistonSe = new Dictionary<string, string>();
  66. private OnaholeMotion.BlendAnimeData beforeBlendData;
  67. private string motionScriptFN = string.Empty;
  68. private string[] motionScriptTextArray;
  69. public float startWaitTime = 1f;
  70. public float plugLerp;
  71. public float pistonUnPlugWaitTime;
  72. private bool finishFlag;
  73. private bool hakaFlag;
  74. public string animeTypeName = string.Empty;
  75. private bool insertFlag;
  76. [SerializeField]
  77. private string lastAnimeName = string.Empty;
  78. public bool animeEndCheck;
  79. public bool nextModePermit;
  80. public bool nextModePermitHarf;
  81. public string blendAnimeName = string.Empty;
  82. public string blendAnimeNameBefore = string.Empty;
  83. public float blendPlugMultiple;
  84. [SerializeField]
  85. public float blendStopTime;
  86. public List<string> loadedAnimeList = new List<string>();
  87. public List<string> loadedAnimeListBefore = new List<string>();
  88. public OnaholeFeelings.PISTON_SPEED playedPistonSeType = OnaholeFeelings.PISTON_SPEED.NO_DATA;
  89. private float playPistonSeCoolTime;
  90. public List<string> debugStringList = new List<string>();
  91. public enum MODE
  92. {
  93. START,
  94. WAIT,
  95. PLUG,
  96. PISTON,
  97. UNPLUG,
  98. SHASEI,
  99. SHASEIGO,
  100. SHASEIGO_IN
  101. }
  102. public enum ANIM_TYPE
  103. {
  104. NON,
  105. WAIT,
  106. PLUG,
  107. PISTON,
  108. UNPLUG,
  109. PISTON_BLEND,
  110. SHASEI_NAKA,
  111. SHASEIGO_NAKA,
  112. SHASEIGO_NAKA_IN,
  113. SHASEI_SOTO,
  114. SHASEIGO_SOTO,
  115. SHASEIGO_SOTO_IN,
  116. MAX
  117. }
  118. public enum PISTON_MODE
  119. {
  120. CHANGE,
  121. PISTON
  122. }
  123. private enum BlendAnime
  124. {
  125. Start,
  126. Inter,
  127. End
  128. }
  129. private class MoitonScriptData
  130. {
  131. public string fileName = string.Empty;
  132. public Dictionary<OnaholeMotion.ANIM_TYPE, string> labelDic = new Dictionary<OnaholeMotion.ANIM_TYPE, string>();
  133. public Dictionary<OnaholeMotion.ANIM_TYPE, string> labelDic2 = new Dictionary<OnaholeMotion.ANIM_TYPE, string>();
  134. }
  135. private class BlendAnimeData
  136. {
  137. public string key = string.Empty;
  138. public MaidTouch.POINT point;
  139. public AnimationState start;
  140. public AnimationState end;
  141. public Dictionary<int, AnimationState> inter = new Dictionary<int, AnimationState>();
  142. }
  143. }