OnaholeMotion.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. [Obsolete]
  81. public bool nextModePermitHarf;
  82. public string blendAnimeName = string.Empty;
  83. public string blendAnimeNameBefore = string.Empty;
  84. public float blendPlugMultiple;
  85. [SerializeField]
  86. [Obsolete]
  87. public float blendStopTime;
  88. public List<string> loadedAnimeList = new List<string>();
  89. public List<string> loadedAnimeListBefore = new List<string>();
  90. public OnaholeFeelings.PISTON_SPEED playedPistonSeType = OnaholeFeelings.PISTON_SPEED.NO_DATA;
  91. private float playPistonSeCoolTime;
  92. public List<string> debugStringList = new List<string>();
  93. public enum MODE
  94. {
  95. START,
  96. WAIT,
  97. PLUG,
  98. PISTON,
  99. UNPLUG,
  100. SHASEI,
  101. SHASEIGO,
  102. SHASEIGO_IN
  103. }
  104. public enum ANIM_TYPE
  105. {
  106. NON,
  107. WAIT,
  108. PLUG,
  109. PISTON,
  110. UNPLUG,
  111. PISTON_BLEND,
  112. SHASEI_NAKA,
  113. SHASEIGO_NAKA,
  114. SHASEIGO_NAKA_IN,
  115. SHASEI_SOTO,
  116. SHASEIGO_SOTO,
  117. SHASEIGO_SOTO_IN,
  118. MAX
  119. }
  120. public enum PISTON_MODE
  121. {
  122. CHANGE,
  123. PISTON
  124. }
  125. private enum BlendAnime
  126. {
  127. Start,
  128. Inter,
  129. End
  130. }
  131. private class MoitonScriptData
  132. {
  133. public string fileName = string.Empty;
  134. public Dictionary<OnaholeMotion.ANIM_TYPE, string> labelDic = new Dictionary<OnaholeMotion.ANIM_TYPE, string>();
  135. public Dictionary<OnaholeMotion.ANIM_TYPE, string> labelDic2 = new Dictionary<OnaholeMotion.ANIM_TYPE, string>();
  136. }
  137. private class BlendAnimeData
  138. {
  139. [Obsolete]
  140. public string key = string.Empty;
  141. [Obsolete]
  142. public MaidTouch.POINT point;
  143. public AnimationState start;
  144. public AnimationState end;
  145. public Dictionary<int, AnimationState> inter = new Dictionary<int, AnimationState>();
  146. }
  147. }