RhythmAction_Mgr.cs 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using wf;
  6. public class RhythmAction_Mgr : MonoBehaviour
  7. {
  8. public static RhythmAction_Mgr.DanceType NowDance
  9. {
  10. get
  11. {
  12. return RhythmAction_Mgr.m_DanceType;
  13. }
  14. }
  15. public static int DanceReward { get; private set; }
  16. public static RhythmAction_Mgr.DanceState NowState { get; private set; }
  17. public static RhythmAction_Mgr Instance
  18. {
  19. get
  20. {
  21. return RhythmAction_Mgr.m_Instance;
  22. }
  23. }
  24. public string MusicCSV_Path
  25. {
  26. get
  27. {
  28. return "csv_rhythm_action/" + this.m_UseMusicName + "/";
  29. }
  30. }
  31. public List<Maid> DanceMaid
  32. {
  33. get
  34. {
  35. return this.m_DanceMain.DanceMaid;
  36. }
  37. }
  38. public Maid UserMaid
  39. {
  40. get
  41. {
  42. return this.m_DanceMain.UserMaid;
  43. }
  44. }
  45. public bool IsTakeEnd
  46. {
  47. get
  48. {
  49. return this.m_DanceMain.m_AnimatorData.takeName == null;
  50. }
  51. }
  52. public float TakeTime
  53. {
  54. get
  55. {
  56. return this.m_DanceMain.m_AnimatorData.GetTakeTime();
  57. }
  58. }
  59. public bool IsPause
  60. {
  61. get
  62. {
  63. return this.m_IsPause;
  64. }
  65. }
  66. public AVProVideoPlayer MovieMgr { get; private set; }
  67. public float DanceDeltaTime { get; private set; }
  68. public Transform OvrCamTrans
  69. {
  70. get
  71. {
  72. return this.m_DanceMain.OvrCamTrans;
  73. }
  74. }
  75. public GameObject UIScreen { get; private set; }
  76. public bool IsReadyNow
  77. {
  78. get
  79. {
  80. return this.m_ReadyPanel;
  81. }
  82. }
  83. public float DanceTimer { get; private set; }
  84. public bool DanceEnd
  85. {
  86. get
  87. {
  88. return this.m_DanceMain.IsDanceEnd;
  89. }
  90. }
  91. public bool ForceDanceEnd
  92. {
  93. get
  94. {
  95. return this.m_DanceMain.IsForceDanceEnd;
  96. }
  97. }
  98. public List<Maid> FactOrderList
  99. {
  100. get
  101. {
  102. return this.m_FactOrderList;
  103. }
  104. }
  105. public bool IsDanceSkip
  106. {
  107. get
  108. {
  109. return this.m_DanceMain.IsDanceSkip;
  110. }
  111. }
  112. public bool IsNewController
  113. {
  114. get
  115. {
  116. return GameMain.Instance.VRMode && GameMain.Instance.OvrMgr.ovr_obj.left_controller.controller.IsControllerTypeNew && GameMain.Instance.OvrMgr.ovr_obj.right_controller.controller.IsControllerTypeNew;
  117. }
  118. }
  119. public float RemainingTime
  120. {
  121. get
  122. {
  123. return Mathf.Max(this.TakeTime - this.DanceTimer, 0f);
  124. }
  125. }
  126. public static int MusicReleaseFlag
  127. {
  128. get
  129. {
  130. return GameMain.Instance.CharacterMgr.status.GetFlag("_楽曲解放");
  131. }
  132. set
  133. {
  134. GameMain.Instance.CharacterMgr.status.SetFlag("_楽曲解放", value);
  135. }
  136. }
  137. public static bool IsVSDance
  138. {
  139. get
  140. {
  141. return RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS || RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS_Skip;
  142. }
  143. }
  144. public static bool IsRhythmGameMode
  145. {
  146. get
  147. {
  148. bool flag = true;
  149. flag &= (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.View && RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.Touch && RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.Encore);
  150. return flag & (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.VS_Skip && RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.BenchMark);
  151. }
  152. }
  153. private void Awake()
  154. {
  155. RhythmAction_Mgr.m_Instance = this;
  156. this.m_NowTime = 0f;
  157. this.m_LastTime = 0f;
  158. this.m_DanceMain = GameObject.Find("_DanceMain_").GetComponent<DanceMain>();
  159. if (!base.transform.parent)
  160. {
  161. GameObject gameObject = GameObject.Find("UI Root");
  162. base.transform.SetParent(gameObject.transform, false);
  163. }
  164. GameObject gameObject2 = base.transform.parent.Find("Camera").gameObject;
  165. this.m_RhythmActionCam = UnityEngine.Object.Instantiate<GameObject>(gameObject2, base.transform.parent).GetComponent<Camera>();
  166. this.m_RhythmActionCam.name = "RhythmActionCam";
  167. this.m_NguiCam = gameObject2.GetComponent<Camera>();
  168. if (!GameMain.Instance.VRMode || !this.IsNewController)
  169. {
  170. this.m_NguiCam.cullingMask = this.m_RhythmAction2DLayer;
  171. this.m_RhythmActionCam.gameObject.SetActive(false);
  172. }
  173. else
  174. {
  175. this.m_OrijinLimit = GameMain.Instance.OvrMgr.OvrCamera.HandLimitMode;
  176. GameMain.Instance.OvrMgr.OvrCamera.HandLimitMode = AVRControllerBehavior.LIMIT_MODE.NO_WARP;
  177. this.m_RhythmActionCam.cullingMask = this.m_RhythmActionLayer;
  178. this.m_LeftPenlight = Utility.CreatePrefab(GameMain.Instance.OvrMgr.GetVRControllerTransform(true).gameObject, "SceneDance/Rhythm_Action/Prefab/StickLight", true);
  179. this.m_LeftPenlight.name = "PenLight(left)";
  180. this.m_RightPenlight = Utility.CreatePrefab(GameMain.Instance.OvrMgr.GetVRControllerTransform(false).gameObject, "SceneDance/Rhythm_Action/Prefab/StickLight", true);
  181. this.m_RightPenlight.name = "PenLight(light)";
  182. Transform transform = this.m_LeftPenlight.transform;
  183. Vector3 vector = Vector3.zero;
  184. this.m_RightPenlight.transform.localEulerAngles = vector;
  185. transform.localEulerAngles = vector;
  186. Transform transform2 = this.m_LeftPenlight.transform;
  187. vector = this.m_PenlightOffset;
  188. this.m_RightPenlight.transform.localPosition = vector;
  189. transform2.localPosition = vector;
  190. Transform transform3 = this.m_LeftPenlight.transform;
  191. vector = this.m_PenlightScale;
  192. this.m_RightPenlight.transform.localScale = vector;
  193. transform3.localScale = vector;
  194. UnityEngine.Object.Destroy(this.m_LeftPenlight.GetComponent<OvrControllerHit>());
  195. UnityEngine.Object.Destroy(this.m_RightPenlight.GetComponent<OvrControllerHit>());
  196. UnityEngine.Object.Destroy(this.m_LeftPenlight.GetComponent<ViveControllerHit>());
  197. UnityEngine.Object.Destroy(this.m_RightPenlight.GetComponent<ViveControllerHit>());
  198. }
  199. if (!DanceMain.KaraokeMode && GameMain.Instance.VRMode)
  200. {
  201. this.m_OvrUI = GameMain.Instance.OvrMgr.OvrCamera.m_goOvrUiScreen.GetComponent<OvrUI>();
  202. GameMain.Instance.OvrMgr.OvrCamera.m_goOvrUiScreen.SetActive(true);
  203. this.UIScreen = this.m_OvrUI.transform.Find("ovr_screen").gameObject;
  204. this.m_FirstScreen = this.UIScreen.transform.localPosition;
  205. if (this.IsNewController)
  206. {
  207. this.m_RhythmActionTex = Resources.Load<RenderTexture>("SceneDance/Rhythm_Action/rtRhythmActionUI");
  208. this.m_RhythmActionCam.targetTexture = this.m_RhythmActionTex;
  209. this.m_ScreenMat = this.UIScreen.transform.Find("default").GetComponent<MeshRenderer>().material;
  210. this.m_ScreenMat.mainTexture = this.m_RhythmActionTex;
  211. this.UIScreen.transform.Find("hit").gameObject.SetActive(false);
  212. }
  213. GameMain.Instance.OvrMgr.OvrCamera.HandDanceMode = (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.VS_Skip);
  214. }
  215. this.m_MainCamDepth = GameMain.Instance.MainCamera.GetComponent<DepthOfFieldScatter>();
  216. if (this.m_MainCamDepth)
  217. {
  218. this.m_OrijinDepthEnable = this.m_MainCamDepth.enabled;
  219. this.m_OrijinFocalSize = this.m_MainCamDepth.focalSize;
  220. this.m_MainCamDepth.focalSize = this.m_DanceMain.DepthFocalSize;
  221. this.m_MainCamDepth.enabled = DanceSetting.Settings.IsDepthOfFieldOn;
  222. }
  223. foreach (RhythmAction_Mgr.ChoiceObjpair choiceObjpair in this.m_ChoiceUIList)
  224. {
  225. choiceObjpair.UIImage = choiceObjpair.EventUI.GetComponent<UISprite>();
  226. switch (choiceObjpair.Choice)
  227. {
  228. case RhythmAction_Mgr.PauseChoices.Continue:
  229. this.AddEventMethod(choiceObjpair.EventUI, new EventDelegate.Callback(this.SelectContinue));
  230. break;
  231. case RhythmAction_Mgr.PauseChoices.End:
  232. if (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.VS_Skip)
  233. {
  234. this.AddEventMethod(choiceObjpair.EventUI, new EventDelegate.Callback(this.SelectEnd));
  235. }
  236. else
  237. {
  238. choiceObjpair.EventUI.SetActive(false);
  239. }
  240. break;
  241. case RhythmAction_Mgr.PauseChoices.Recet:
  242. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.Free)
  243. {
  244. this.AddEventMethod(choiceObjpair.EventUI, new EventDelegate.Callback(this.SelectRecet));
  245. }
  246. else
  247. {
  248. choiceObjpair.EventUI.SetActive(false);
  249. choiceObjpair.EventUI.transform.parent.localPosition += Vector3.down * this.m_ChoiceUIDown;
  250. }
  251. break;
  252. case RhythmAction_Mgr.PauseChoices.Skip:
  253. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.VS_Skip)
  254. {
  255. this.AddEventMethod(choiceObjpair.EventUI, new EventDelegate.Callback(this.SelectSkip));
  256. }
  257. else
  258. {
  259. choiceObjpair.EventUI.SetActive(false);
  260. }
  261. break;
  262. }
  263. }
  264. this.ChoicesUIRecet();
  265. this.m_PausePanel.SetActive(false);
  266. GameObject gameObject3 = GameObject.Find("LiveGimic");
  267. if (gameObject3)
  268. {
  269. this.Search_AllEffect(gameObject3.transform, false);
  270. }
  271. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  272. {
  273. GameMain.Instance.SysShortcut.gameObject.SetActive(false);
  274. }
  275. }
  276. private void Update()
  277. {
  278. if (this.m_LastTime != 0f)
  279. {
  280. this.m_NowTime = Time.realtimeSinceStartup;
  281. }
  282. if (this.m_LeftPenlight && this.m_RightPenlight)
  283. {
  284. this.m_LeftPenlight.SetActive(GameMain.Instance.OvrMgr.ovr_obj.left_controller.controller.HandDanceMode);
  285. this.m_RightPenlight.SetActive(GameMain.Instance.OvrMgr.ovr_obj.right_controller.controller.HandDanceMode);
  286. }
  287. this.DanceDeltaTime = this.m_NowTime - this.m_LastTime;
  288. this.m_LastTime = Time.realtimeSinceStartup;
  289. if (!this.IsPause && this.m_IsStart)
  290. {
  291. this.DanceTimer += this.DanceDeltaTime;
  292. }
  293. if (GameMain.Instance.VRMode && this.m_OvrUI)
  294. {
  295. if (!this.IsNewController && !Note_Mgr.Instance.IsActive)
  296. {
  297. return;
  298. }
  299. Vector3 eulerAngles = this.m_OvrUI.m_goCenter.transform.eulerAngles;
  300. eulerAngles.z = 0f;
  301. this.m_OvrUI.transform.eulerAngles = eulerAngles;
  302. this.UIScreen.transform.localPosition = new Vector3(0f, -this.m_UIDown, this.m_CameraLength);
  303. this.m_RhythmActionCam.transform.localPosition = this.m_NguiCam.transform.localPosition;
  304. }
  305. }
  306. private void OnDestroy()
  307. {
  308. if (this.m_RhythmActionCam)
  309. {
  310. UnityEngine.Object.DestroyImmediate(this.m_RhythmActionCam.gameObject);
  311. }
  312. if (GameMain.Instance.VRMode && !this.IsNewController)
  313. {
  314. this.m_NguiCam.cullingMask = LayerMask.GetMask(new string[]
  315. {
  316. "NGUI"
  317. });
  318. }
  319. if (!DanceMain.KaraokeMode && GameMain.Instance.VRMode && GameMain.Instance.VRFamily != GameMain.VRFamilyType.NON)
  320. {
  321. if (this.IsNewController)
  322. {
  323. GameMain.Instance.OvrMgr.OvrCamera.ShowUI(true);
  324. GameMain.Instance.OvrMgr.OvrCamera.HandLimitMode = this.m_OrijinLimit;
  325. if (GameMain.Instance.OvrMgr.OvrCamera.m_goOvrUiScreen)
  326. {
  327. GameMain.Instance.OvrMgr.OvrCamera.m_goOvrUiScreen.SetActive(false);
  328. }
  329. }
  330. else if (this.m_OvrUI)
  331. {
  332. this.m_OvrUI.enabled = true;
  333. }
  334. GameMain.Instance.OvrMgr.OvrCamera.HandDanceMode = false;
  335. }
  336. if (this.m_MainCamDepth)
  337. {
  338. this.m_MainCamDepth.focalSize = this.m_OrijinFocalSize;
  339. this.m_MainCamDepth.enabled = this.m_OrijinDepthEnable;
  340. }
  341. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  342. {
  343. if (GameMain.Instance && GameMain.Instance.SysShortcut)
  344. {
  345. GameMain.Instance.SysShortcut.gameObject.SetActive(true);
  346. }
  347. BenchSetting.SettingRecet();
  348. }
  349. foreach (Maid maid in this.DanceMaid)
  350. {
  351. if (maid)
  352. {
  353. maid.MabatakiUpdateStop = false;
  354. }
  355. }
  356. if (this.m_LeftPenlight && this.m_RightPenlight)
  357. {
  358. UnityEngine.Object.Destroy(this.m_LeftPenlight);
  359. UnityEngine.Object.Destroy(this.m_RightPenlight);
  360. }
  361. }
  362. private IEnumerator CheckPause()
  363. {
  364. float timer = 0f;
  365. UIPanel ready_panel = (!this.m_ReadyPanel) ? null : this.m_ReadyPanel.GetComponent<UIPanel>();
  366. bool ready_fade = false;
  367. bool ready_display = false;
  368. for (;;)
  369. {
  370. if (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.BenchMark)
  371. {
  372. if (this.m_ReadyPanel)
  373. {
  374. if (!ready_display)
  375. {
  376. ready_display = GameMain.Instance.MainCamera.IsFadeProc();
  377. }
  378. else if (!ready_fade)
  379. {
  380. if (!this.IsPause && !this.m_ReadyNotStop)
  381. {
  382. this.SwitchPause(true, true);
  383. }
  384. timer += this.DanceDeltaTime;
  385. if (timer > this.m_ReadyWaitTime)
  386. {
  387. this.SwitchPause(false, true);
  388. ready_fade = true;
  389. timer = 0f;
  390. }
  391. }
  392. else
  393. {
  394. timer += this.DanceDeltaTime;
  395. ready_panel.alpha = 1f - Mathf.Sin(Mathf.Clamp01(timer / this.m_ReadyFadeTime) * 90f * 0.0174532924f);
  396. if (timer > this.m_ReadyFadeTime)
  397. {
  398. ready_fade = false;
  399. ready_display = false;
  400. UnityEngine.Object.Destroy(this.m_ReadyPanel);
  401. timer = 0f;
  402. }
  403. }
  404. }
  405. else if (!GameMain.Instance.MainCamera.IsFadeOut() && Input.GetKeyDown(KeyCode.Return))
  406. {
  407. this.SwitchPause(!this.m_IsPause, false);
  408. }
  409. }
  410. yield return null;
  411. }
  412. yield break;
  413. }
  414. private void DanceStart()
  415. {
  416. this.m_IsStart = true;
  417. if (GameMain.Instance.VRMode)
  418. {
  419. this.m_NguiCam.clearFlags = CameraClearFlags.Color;
  420. this.m_RhythmActionCam.clearFlags = CameraClearFlags.Color;
  421. }
  422. else
  423. {
  424. this.m_NguiCam.clearFlags = CameraClearFlags.Depth;
  425. }
  426. this.m_BlackBG.SetActive(DanceSetting.Settings.IsblackBGon && Note_Mgr.Instance.IsActive);
  427. if (this.m_OvrUI)
  428. {
  429. if (this.IsNewController)
  430. {
  431. GameMain.Instance.OvrMgr.OvrCamera.ShowUI(!Note_Mgr.Instance.IsActive);
  432. this.m_OvrUI.enabled = false;
  433. }
  434. else
  435. {
  436. this.m_OvrUI.enabled = !Note_Mgr.Instance.IsActive;
  437. }
  438. }
  439. if (RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  440. {
  441. GameMain.Instance.SysShortcut.gameObject.SetActive(false);
  442. }
  443. if (!Note_Mgr.Instance.IsActive || RhythmAction_Mgr.NowDance == RhythmAction_Mgr.DanceType.BenchMark)
  444. {
  445. UnityEngine.Object.Destroy(this.m_ReadyPanel);
  446. }
  447. if (DanceMain.KaraokeMode)
  448. {
  449. return;
  450. }
  451. foreach (Maid maid in this.DanceMaid)
  452. {
  453. this.SetMaidFaceStop(maid, false);
  454. this.SetMaidFaceBlendStop(maid, false);
  455. this.Search_AllEffect(maid.transform, true);
  456. }
  457. base.StartCoroutine(this.CheckPause());
  458. }
  459. private void ToNextState()
  460. {
  461. if (DanceMain.KaraokeMode)
  462. {
  463. return;
  464. }
  465. RhythmAction_Mgr.DanceState nowState = RhythmAction_Mgr.NowState;
  466. if (nowState != RhythmAction_Mgr.DanceState.Dance_First)
  467. {
  468. if (nowState == RhythmAction_Mgr.DanceState.Dance_Second)
  469. {
  470. GameMain.Instance.CharacterMgr.status.SetFlag("バトル回数", 2);
  471. RhythmAction_Mgr.NowState = RhythmAction_Mgr.DanceState.Dance_First;
  472. }
  473. }
  474. else
  475. {
  476. GameMain.Instance.CharacterMgr.status.SetFlag("バトル回数", 1);
  477. if (RhythmAction_Mgr.IsVSDance)
  478. {
  479. RhythmAction_Mgr.NowState = RhythmAction_Mgr.DanceState.Dance_Second;
  480. }
  481. }
  482. }
  483. private void SwitchPause(bool is_pause, bool is_ready = false)
  484. {
  485. this.m_IsPause = is_pause;
  486. this.m_PausePanel.SetActive(this.m_IsPause && !is_ready);
  487. if (this.IsNewController && this.m_PausePanel.activeSelf)
  488. {
  489. GameMain.Instance.OvrMgr.OvrCamera.ShowUI(true);
  490. }
  491. this.ChoicesUIRecet();
  492. if (this.m_IsPause)
  493. {
  494. if (this.MovieMgr)
  495. {
  496. this.MovieMgr.Stop();
  497. }
  498. foreach (ParticleSystem particleSystem in this.m_AllParticleSystem)
  499. {
  500. if (particleSystem && particleSystem.gameObject.activeInHierarchy)
  501. {
  502. particleSystem.Pause();
  503. }
  504. }
  505. foreach (Animator animator in this.m_OtherAnimator)
  506. {
  507. animator.speed = 0f;
  508. }
  509. foreach (AudioSource audioSource in this.m_AudioMgrList)
  510. {
  511. audioSource.Pause();
  512. }
  513. GameMain.Instance.SoundMgr.GetAudioSourceBgm().Pause();
  514. }
  515. else
  516. {
  517. if (this.MovieMgr)
  518. {
  519. this.MovieMgr.Play();
  520. }
  521. foreach (ParticleSystem particleSystem2 in this.m_AllParticleSystem)
  522. {
  523. if (particleSystem2 && particleSystem2.gameObject.activeInHierarchy)
  524. {
  525. particleSystem2.Play();
  526. }
  527. }
  528. foreach (Animator animator2 in this.m_OtherAnimator)
  529. {
  530. animator2.speed = 1f;
  531. }
  532. foreach (AudioSource audioSource2 in this.m_AudioMgrList)
  533. {
  534. audioSource2.UnPause();
  535. }
  536. GameMain.Instance.SoundMgr.GetAudioSourceBgm().UnPause();
  537. }
  538. foreach (EllipsoidParticleEmitter ellipsoidParticleEmitter in this.m_AllParticleEmitter)
  539. {
  540. if (ellipsoidParticleEmitter)
  541. {
  542. ellipsoidParticleEmitter.enabled = !this.m_IsPause;
  543. }
  544. }
  545. for (int i = 0; i < this.DanceMaid.Count; i++)
  546. {
  547. Maid maid = this.DanceMaid[i];
  548. if (GameMain.Instance.VRMode && GameMain.Instance.CMSystem.GetTmpGenericFlag("ダンスOVRカメラタイプ") == 0)
  549. {
  550. RhythmAction_Mgr.PauseBackupLookTarget pauseBackupLookTarget2;
  551. if (this.m_IsPause)
  552. {
  553. RhythmAction_Mgr.PauseBackupLookTarget pauseBackupLookTarget = new RhythmAction_Mgr.PauseBackupLookTarget();
  554. pauseBackupLookTarget.m_backupHeadToCam = maid.body0.boHeadToCam;
  555. pauseBackupLookTarget.m_backupEyeToCam = maid.body0.boEyeToCam;
  556. pauseBackupLookTarget.m_backupEyeSorashi = maid.body0.boEyeSorashi;
  557. pauseBackupLookTarget.m_backupLookTarget = maid.body0.trsLookTarget;
  558. this.m_backupLookTarget[i] = pauseBackupLookTarget;
  559. maid.EyeToCamera(Maid.EyeMoveType.無視する, 0f);
  560. }
  561. else if (this.m_backupLookTarget.TryGetValue(i, out pauseBackupLookTarget2))
  562. {
  563. maid.body0.boHeadToCam = pauseBackupLookTarget2.m_backupHeadToCam;
  564. maid.body0.boEyeToCam = pauseBackupLookTarget2.m_backupEyeToCam;
  565. maid.body0.boEyeSorashi = pauseBackupLookTarget2.m_backupEyeSorashi;
  566. maid.body0.trsLookTarget = pauseBackupLookTarget2.m_backupLookTarget;
  567. }
  568. else
  569. {
  570. maid.EyeToCamera(Maid.EyeMoveType.目だけ向ける, 0f);
  571. }
  572. }
  573. maid.MabatakiUpdateStop = this.m_IsPause;
  574. }
  575. if (!is_ready)
  576. {
  577. GameMain.Instance.SoundMgr.PlaySystem(SoundMgr.SeType.Click);
  578. }
  579. }
  580. private void SelectContinue()
  581. {
  582. this.m_SelectEnd = false;
  583. this.m_SelectRecet = false;
  584. this.m_SelectSkip = false;
  585. this.ChoicesSelect(RhythmAction_Mgr.PauseChoices.Continue, true);
  586. }
  587. private void SelectEnd()
  588. {
  589. this.m_SelectEnd = true;
  590. this.m_SelectRecet = false;
  591. this.m_SelectSkip = false;
  592. this.ChoicesSelect(RhythmAction_Mgr.PauseChoices.End, true);
  593. }
  594. private void SelectRecet()
  595. {
  596. this.m_SelectEnd = true;
  597. this.m_SelectRecet = true;
  598. this.m_SelectSkip = false;
  599. this.ChoicesSelect(RhythmAction_Mgr.PauseChoices.Recet, true);
  600. }
  601. private void SelectSkip()
  602. {
  603. this.m_SelectEnd = false;
  604. this.m_SelectRecet = false;
  605. this.m_SelectSkip = true;
  606. this.ChoicesSelect(RhythmAction_Mgr.PauseChoices.Skip, true);
  607. }
  608. private void ChoicesSelect(RhythmAction_Mgr.PauseChoices select_choice, bool playse = true)
  609. {
  610. if (playse)
  611. {
  612. GameMain.Instance.SoundMgr.PlaySystem(SoundMgr.SeType.Hover);
  613. }
  614. foreach (RhythmAction_Mgr.ChoiceObjpair choiceObjpair in this.m_ChoiceUIList)
  615. {
  616. if (choiceObjpair.Choice == select_choice)
  617. {
  618. choiceObjpair.UIImage.spriteName = choiceObjpair.CursorOnImage;
  619. }
  620. else
  621. {
  622. choiceObjpair.UIImage.spriteName = choiceObjpair.CursorOffImage;
  623. }
  624. }
  625. }
  626. private void ChoicesUIRecet()
  627. {
  628. this.m_SelectEnd = false;
  629. this.m_SelectRecet = false;
  630. this.m_SelectSkip = false;
  631. this.ChoicesSelect(RhythmAction_Mgr.PauseChoices.Continue, false);
  632. }
  633. private void Decide_GameEnd()
  634. {
  635. GameMain.Instance.SoundMgr.PlaySystem(SoundMgr.SeType.Click);
  636. this.m_DanceMain.IsForceDanceEnd = this.m_SelectEnd;
  637. this.m_DanceMain.IsDanceSkip = this.m_SelectSkip;
  638. DanceMain.IsDanceRecet = this.m_SelectRecet;
  639. if (!this.m_DanceMain.IsForceDanceEnd && !this.m_SelectSkip)
  640. {
  641. this.SwitchPause(false, false);
  642. }
  643. else
  644. {
  645. foreach (Maid maid in this.DanceMaid)
  646. {
  647. maid.boMabataki = true;
  648. }
  649. }
  650. }
  651. private void AddEventMethod(GameObject ui, EventDelegate.Callback callback)
  652. {
  653. UIEventTrigger component = ui.GetComponent<UIEventTrigger>();
  654. EventDelegate.Add(component.onHoverOver, callback);
  655. EventDelegate.Add(component.onPress, new EventDelegate.Callback(this.Decide_GameEnd));
  656. }
  657. public void Search_AllEffect(Transform parent, bool isIgnoreAnime = false)
  658. {
  659. IEnumerator enumerator = parent.GetEnumerator();
  660. try
  661. {
  662. while (enumerator.MoveNext())
  663. {
  664. object obj = enumerator.Current;
  665. Transform transform = (Transform)obj;
  666. ParticleSystem component = transform.GetComponent<ParticleSystem>();
  667. EllipsoidParticleEmitter component2 = transform.GetComponent<EllipsoidParticleEmitter>();
  668. Animator component3 = transform.GetComponent<Animator>();
  669. AVProVideoPlayer component4 = transform.GetComponent<AVProVideoPlayer>();
  670. if (component)
  671. {
  672. this.m_AllParticleSystem.Add(component);
  673. }
  674. else if (component2)
  675. {
  676. this.m_AllParticleEmitter.Add(component2);
  677. }
  678. else if (component3 && !isIgnoreAnime)
  679. {
  680. this.m_OtherAnimator.Add(component3);
  681. }
  682. else if (component4)
  683. {
  684. this.MovieMgr = component4;
  685. }
  686. this.Search_AllEffect(transform, isIgnoreAnime);
  687. }
  688. }
  689. finally
  690. {
  691. IDisposable disposable;
  692. if ((disposable = (enumerator as IDisposable)) != null)
  693. {
  694. disposable.Dispose();
  695. }
  696. }
  697. }
  698. public void AddMgrParts(PartsMgrBase parts)
  699. {
  700. this.m_MgrPartsList.Add(parts);
  701. }
  702. public T GetMgrParts<T>() where T : PartsMgrBase
  703. {
  704. foreach (PartsMgrBase partsMgrBase in this.m_MgrPartsList)
  705. {
  706. if (partsMgrBase is T)
  707. {
  708. return (T)((object)partsMgrBase);
  709. }
  710. }
  711. Debug.LogErrorFormat("指定した管理クラスを取得できませんでした", new object[0]);
  712. return (T)((object)null);
  713. }
  714. public void RhythmGame_Start()
  715. {
  716. this.DanceStart();
  717. foreach (PartsMgrBase partsMgrBase in this.m_MgrPartsList)
  718. {
  719. if (partsMgrBase.IsActive)
  720. {
  721. partsMgrBase.StartAction();
  722. }
  723. }
  724. }
  725. public void RhythmGame_End()
  726. {
  727. if (GameMain.Instance.VRMode && this.m_OvrUI)
  728. {
  729. this.m_OvrUI.enabled = true;
  730. }
  731. base.StopAllCoroutines();
  732. foreach (PartsMgrBase partsMgrBase in this.m_MgrPartsList)
  733. {
  734. if (partsMgrBase.IsActive)
  735. {
  736. partsMgrBase.EndAction();
  737. }
  738. }
  739. this.ToNextState();
  740. }
  741. public void Pause()
  742. {
  743. this.SwitchPause(true, false);
  744. }
  745. public void Play()
  746. {
  747. this.SwitchPause(false, false);
  748. }
  749. public void AddParticleSystem(ParticleSystem particle)
  750. {
  751. if (!this.m_AllParticleSystem.Contains(particle))
  752. {
  753. this.m_AllParticleSystem.Add(particle);
  754. }
  755. if (particle.subEmitters.subEmittersCount > 0)
  756. {
  757. for (int i = 0; i < particle.subEmitters.subEmittersCount; i++)
  758. {
  759. this.AddParticleSystem(particle.subEmitters.GetSubEmitterSystem(i));
  760. }
  761. }
  762. }
  763. public void AddParticleSystem(ParticleSystem[] particle)
  764. {
  765. foreach (ParticleSystem particle2 in particle)
  766. {
  767. this.AddParticleSystem(particle2);
  768. }
  769. }
  770. public void RemoveParticleSystem(ParticleSystem particle)
  771. {
  772. if (this.m_AllParticleSystem.Contains(particle))
  773. {
  774. this.m_AllParticleSystem.Remove(particle);
  775. }
  776. if (particle.subEmitters.subEmittersCount > 0)
  777. {
  778. for (int i = 0; i < particle.subEmitters.subEmittersCount; i++)
  779. {
  780. this.RemoveParticleSystem(particle.subEmitters.GetSubEmitterSystem(i));
  781. }
  782. }
  783. }
  784. public void RemoveParticleSystem(ParticleSystem[] particle)
  785. {
  786. foreach (ParticleSystem particle2 in particle)
  787. {
  788. this.RemoveParticleSystem(particle2);
  789. }
  790. }
  791. public void AddAudioMgr(AudioSource[] audio_array)
  792. {
  793. foreach (AudioSource audio in audio_array)
  794. {
  795. this.AddAudioMgr(audio);
  796. }
  797. }
  798. public void AddAudioMgr(AudioSource audio)
  799. {
  800. if (!this.m_AudioMgrList.Contains(audio))
  801. {
  802. this.m_AudioMgrList.Add(audio);
  803. }
  804. }
  805. public void RemoveAudioMgr(AudioSource[] audio_array)
  806. {
  807. foreach (AudioSource audio in audio_array)
  808. {
  809. this.RemoveAudioMgr(audio);
  810. }
  811. }
  812. public void RemoveAudioMgr(AudioSource audio)
  813. {
  814. if (this.m_AudioMgrList.Contains(audio))
  815. {
  816. this.m_AudioMgrList.Remove(audio);
  817. }
  818. }
  819. public bool GetCamMoveStop()
  820. {
  821. return this.TimeLineStopInfo.CamMoveStop;
  822. }
  823. public void SetCamMoveStop(bool set)
  824. {
  825. this.TimeLineStopInfo.CamMoveStop = set;
  826. }
  827. public void SetTimeLineFace(int maid_no, string face)
  828. {
  829. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(maid_no);
  830. if (this.TimeLineStopInfo.TimeLineFace.ContainsKey(maid))
  831. {
  832. this.TimeLineStopInfo.TimeLineFace[maid] = face;
  833. }
  834. else
  835. {
  836. this.TimeLineStopInfo.TimeLineFace.Add(maid, face);
  837. }
  838. }
  839. public void SetTimeLineFaceBlend(int maid_no, string face)
  840. {
  841. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(maid_no);
  842. if (this.TimeLineStopInfo.TimeLineFaceBlend.ContainsKey(maid))
  843. {
  844. this.TimeLineStopInfo.TimeLineFaceBlend[maid] = face;
  845. }
  846. else
  847. {
  848. this.TimeLineStopInfo.TimeLineFaceBlend.Add(maid, face);
  849. }
  850. }
  851. public bool GetMaidFaceStop(int maid_no)
  852. {
  853. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(maid_no);
  854. return this.GetMaidFaceStop(maid);
  855. }
  856. public bool GetMaidFaceStop(Maid maid)
  857. {
  858. return this.TimeLineStopInfo.FaceStop.ContainsKey(maid) && this.TimeLineStopInfo.FaceStop[maid];
  859. }
  860. public bool GetMaidFaceBlendStop(int maid_no)
  861. {
  862. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(maid_no);
  863. return this.GetMaidFaceBlendStop(maid);
  864. }
  865. public bool GetMaidFaceBlendStop(Maid maid)
  866. {
  867. return this.TimeLineStopInfo.FaceBlendStop.ContainsKey(maid) && this.TimeLineStopInfo.FaceBlendStop[maid];
  868. }
  869. public void SetMaidFaceStop(Maid maid, bool set)
  870. {
  871. if (!this.TimeLineStopInfo.FaceStop.ContainsKey(maid) || !this.TimeLineStopInfo.TimeLineFace.ContainsKey(maid))
  872. {
  873. if (!this.TimeLineStopInfo.FaceStop.ContainsKey(maid))
  874. {
  875. this.TimeLineStopInfo.FaceStop.Add(maid, set);
  876. }
  877. return;
  878. }
  879. if (this.TimeLineStopInfo.FaceStop[maid] != set)
  880. {
  881. this.TimeLineStopInfo.FaceStop[maid] = set;
  882. if (!set)
  883. {
  884. maid.FaceAnime(this.TimeLineStopInfo.TimeLineFace[maid], 1f, 0);
  885. }
  886. }
  887. }
  888. public void SetMaidFaceBlendStop(Maid maid, bool set)
  889. {
  890. if (!this.TimeLineStopInfo.FaceBlendStop.ContainsKey(maid) || !this.TimeLineStopInfo.TimeLineFaceBlend.ContainsKey(maid))
  891. {
  892. if (!this.TimeLineStopInfo.FaceBlendStop.ContainsKey(maid))
  893. {
  894. this.TimeLineStopInfo.FaceBlendStop.Add(maid, set);
  895. }
  896. return;
  897. }
  898. if (this.TimeLineStopInfo.FaceBlendStop[maid] != set)
  899. {
  900. this.TimeLineStopInfo.FaceBlendStop[maid] = set;
  901. if (!set)
  902. {
  903. maid.FaceBlend(this.TimeLineStopInfo.TimeLineFaceBlend[maid]);
  904. }
  905. }
  906. }
  907. public void SetDanceReward(int reward)
  908. {
  909. if (RhythmAction_Mgr.NowDance != RhythmAction_Mgr.DanceType.Challenge)
  910. {
  911. return;
  912. }
  913. RhythmAction_Mgr.DanceReward += reward;
  914. }
  915. public void SetFocalSize(float focal_size)
  916. {
  917. if (this.m_MainCamDepth)
  918. {
  919. this.m_MainCamDepth.focalSize = focal_size;
  920. }
  921. }
  922. public IEnumerator DanceTimeCoroutine(float time_rimmit, Action<float> update_call, Action end_call = null)
  923. {
  924. float timer = 0f;
  925. for (;;)
  926. {
  927. if (!this.IsPause)
  928. {
  929. timer += this.DanceDeltaTime;
  930. if (update_call != null)
  931. {
  932. update_call(timer);
  933. }
  934. if (time_rimmit > 0f && timer > time_rimmit)
  935. {
  936. break;
  937. }
  938. }
  939. yield return null;
  940. }
  941. if (end_call != null)
  942. {
  943. end_call();
  944. }
  945. yield break;
  946. yield break;
  947. }
  948. public IEnumerator DanceTimeCoroutine(Action update_call, Func<bool> endcheck_call = null)
  949. {
  950. for (;;)
  951. {
  952. if (!this.IsPause)
  953. {
  954. if (update_call != null)
  955. {
  956. update_call();
  957. }
  958. if (endcheck_call != null && endcheck_call())
  959. {
  960. break;
  961. }
  962. }
  963. yield return null;
  964. }
  965. yield break;
  966. yield break;
  967. }
  968. public void StartTimeCroutine(float time_rimmit, Action<float> update_call, Action end_call = null)
  969. {
  970. base.StartCoroutine(this.DanceTimeCoroutine(time_rimmit, update_call, end_call));
  971. }
  972. public void StartTimeCroutine(Action update_call, Func<bool> endcheck_call = null)
  973. {
  974. base.StartCoroutine(this.DanceTimeCoroutine(update_call, endcheck_call));
  975. }
  976. public void InstanceInit()
  977. {
  978. RhythmAction_Mgr.m_Instance = this;
  979. }
  980. public void KaraokeEnd()
  981. {
  982. if (this.m_RhythmActionCam)
  983. {
  984. UnityEngine.Object.Destroy(this.m_RhythmActionCam.gameObject);
  985. }
  986. UnityEngine.Object.Destroy(base.gameObject);
  987. }
  988. public static void RewardRecet()
  989. {
  990. RhythmAction_Mgr.DanceReward = 0;
  991. }
  992. public static void KaraokeRecet()
  993. {
  994. RhythmAction_Mgr.NowState = RhythmAction_Mgr.DanceState.Dance_First;
  995. MotionAction_Mgr.CaptureFlagRecet();
  996. }
  997. public static void SetDanceType(RhythmAction_Mgr.DanceType type)
  998. {
  999. if (type == RhythmAction_Mgr.DanceType.VrDance)
  1000. {
  1001. return;
  1002. }
  1003. RhythmAction_Mgr.m_DanceType = type;
  1004. if (RhythmAction_Mgr.m_DanceType != RhythmAction_Mgr.DanceType.VS_Skip)
  1005. {
  1006. ShootCutInTex.TextureClear(DanceBattle_Mgr.CharaType.Player);
  1007. }
  1008. RhythmAction_Mgr.NowState = RhythmAction_Mgr.DanceState.Dance_First;
  1009. MotionAction_Mgr.CaptureFlagRecet();
  1010. if (RhythmAction_Mgr.m_DanceType == RhythmAction_Mgr.DanceType.Challenge)
  1011. {
  1012. RhythmAction_Mgr.DoChallengeDance = true;
  1013. RhythmAction_Mgr.RewardRecet();
  1014. }
  1015. }
  1016. public const string RhythmResouce_Path = "SceneDance/Rhythm_Action/";
  1017. public const string DanceSelectResouce_Path = "SceneDanceSelect/Rhythm_Action/";
  1018. public const string RhythmCSVPath = "csv_rhythm_action/";
  1019. public const int BenchMarkID = -100;
  1020. public const string TestResourcePath = "SceneDance/Rhythm_Action/TestResources/";
  1021. public const string ToolResource_path = "SceneDance/Rhythm_Action/Tools/";
  1022. private static RhythmAction_Mgr.DanceType m_DanceType = RhythmAction_Mgr.DanceType.View;
  1023. public static bool DoChallengeDance;
  1024. private static RhythmAction_Mgr m_Instance;
  1025. private List<PartsMgrBase> m_MgrPartsList = new List<PartsMgrBase>();
  1026. [SerializeField]
  1027. private GameObject m_PausePanel;
  1028. [SerializeField]
  1029. [Header("「Ready?」の表示時間")]
  1030. private float m_ReadyWaitTime = 2f;
  1031. [SerializeField]
  1032. [Header("「Ready?」フェードアウト時間")]
  1033. private float m_ReadyFadeTime = 0.5f;
  1034. [SerializeField]
  1035. private GameObject m_ReadyPanel;
  1036. [SerializeField]
  1037. [Header("csvフォルダ名")]
  1038. private string m_UseMusicName;
  1039. private DanceMain m_DanceMain;
  1040. private bool m_IsPause;
  1041. private List<ParticleSystem> m_AllParticleSystem = new List<ParticleSystem>();
  1042. private List<EllipsoidParticleEmitter> m_AllParticleEmitter = new List<EllipsoidParticleEmitter>();
  1043. private List<Animator> m_OtherAnimator = new List<Animator>();
  1044. private List<AudioSource> m_AudioMgrList = new List<AudioSource>();
  1045. private float m_NowTime;
  1046. private float m_LastTime;
  1047. private OvrUI m_OvrUI;
  1048. private Vector3 m_FirstScreen;
  1049. [Header("VR時カメラ設定")]
  1050. [SerializeField]
  1051. [Header("VR時のカメラとの距離")]
  1052. private float m_CameraLength = 1f;
  1053. [SerializeField]
  1054. [Header("VR時はnGUIを少し下げる")]
  1055. private float m_UIDown = 0.5f;
  1056. private RhythmAction_Mgr.TimeLineStop TimeLineStopInfo = new RhythmAction_Mgr.TimeLineStop();
  1057. private bool m_SelectEnd;
  1058. private bool m_SelectRecet;
  1059. private bool m_SelectSkip;
  1060. [SerializeField]
  1061. [Header("フリー以外の時は選択肢UIを少し下に下げる")]
  1062. private float m_ChoiceUIDown = 65f;
  1063. [SerializeField]
  1064. [Header("ポーズ中の各選択肢毎に設定するUI")]
  1065. private List<RhythmAction_Mgr.ChoiceObjpair> m_ChoiceUIList = new List<RhythmAction_Mgr.ChoiceObjpair>();
  1066. private bool m_OrijinDepthEnable;
  1067. private DepthOfFieldScatter m_MainCamDepth;
  1068. private float m_OrijinFocalSize;
  1069. [SerializeField]
  1070. [Header("黒背景")]
  1071. private GameObject m_BlackBG;
  1072. [SerializeField]
  1073. [Header("Readyでもダンスを止めないフラグ")]
  1074. private bool m_ReadyNotStop;
  1075. [SerializeField]
  1076. [Header("音ゲーのレイヤー")]
  1077. private LayerMask m_RhythmActionLayer = -1;
  1078. [SerializeField]
  1079. [Header("音ゲーのレイヤー(2D時)")]
  1080. private LayerMask m_RhythmAction2DLayer = -1;
  1081. private List<Maid> m_FactOrderList = new List<Maid>();
  1082. private bool m_IsOrijinTablet;
  1083. private Camera m_RhythmActionCam;
  1084. private RenderTexture m_RhythmActionTex;
  1085. private Material m_ScreenMat;
  1086. private Camera m_NguiCam;
  1087. private AVRControllerBehavior.LIMIT_MODE m_OrijinLimit;
  1088. private bool m_IsStart;
  1089. [SerializeField]
  1090. [Header("ペンライトのオフセット")]
  1091. private Vector3 m_PenlightOffset = new Vector3(0f, -0.01f, -0.06f);
  1092. [SerializeField]
  1093. [Header("ペンライトのサイズ")]
  1094. private Vector3 m_PenlightScale = new Vector3(1.25f, 1.25f, 2f);
  1095. private GameObject m_LeftPenlight;
  1096. private GameObject m_RightPenlight;
  1097. private Dictionary<int, RhythmAction_Mgr.PauseBackupLookTarget> m_backupLookTarget = new Dictionary<int, RhythmAction_Mgr.PauseBackupLookTarget>();
  1098. public enum DanceType
  1099. {
  1100. Free,
  1101. Challenge,
  1102. VS,
  1103. Encore,
  1104. View,
  1105. BenchMark,
  1106. Touch,
  1107. VS_Skip,
  1108. VrDance
  1109. }
  1110. public enum DanceState
  1111. {
  1112. Dance_First,
  1113. Dance_Second
  1114. }
  1115. private class TimeLineStop
  1116. {
  1117. public bool CamMoveStop;
  1118. public Dictionary<Maid, bool> FaceStop = new Dictionary<Maid, bool>();
  1119. public Dictionary<Maid, bool> FaceBlendStop = new Dictionary<Maid, bool>();
  1120. public Dictionary<Maid, string> TimeLineFace = new Dictionary<Maid, string>();
  1121. public Dictionary<Maid, string> TimeLineFaceBlend = new Dictionary<Maid, string>();
  1122. }
  1123. private enum PauseChoices
  1124. {
  1125. Continue,
  1126. End,
  1127. Recet,
  1128. Skip
  1129. }
  1130. [Serializable]
  1131. private class ChoiceObjpair
  1132. {
  1133. public RhythmAction_Mgr.PauseChoices Choice;
  1134. public GameObject EventUI;
  1135. public string CursorOnImage;
  1136. public string CursorOffImage;
  1137. [HideInInspector]
  1138. public UISprite UIImage;
  1139. }
  1140. private class PauseBackupLookTarget
  1141. {
  1142. public bool m_backupHeadToCam;
  1143. public bool m_backupEyeToCam;
  1144. public bool m_backupEyeSorashi;
  1145. public Transform m_backupLookTarget;
  1146. }
  1147. }