VRCanvasManager.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Events;
  5. using UnityEngine.EventSystems;
  6. using UnityEngine.UI;
  7. public class VRCanvasManager : MonoBehaviour
  8. {
  9. public static VRCanvasManager Instance
  10. {
  11. get
  12. {
  13. if (VRCanvasManager.m_Instance == null)
  14. {
  15. VRCanvasManager.m_Instance = UnityEngine.Object.FindObjectOfType<VRCanvasManager>();
  16. }
  17. return VRCanvasManager.m_Instance;
  18. }
  19. }
  20. public UICanvasFade CanvasParent
  21. {
  22. get
  23. {
  24. return this.m_CanvasParent;
  25. }
  26. }
  27. public bool IsYotogiSelecting
  28. {
  29. get
  30. {
  31. return this.m_IsYotogiSelecting;
  32. }
  33. set
  34. {
  35. this.m_IsYotogiSelecting = value;
  36. }
  37. }
  38. private void Awake()
  39. {
  40. VRCanvasManager.m_Instance = this;
  41. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.MainMenu, this.m_CanvasMainMenu);
  42. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Manual, this.m_CanvasManual);
  43. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.NeiLetter, this.m_CanvasNeiLetter);
  44. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Dialog, this.m_CanvasDialog);
  45. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.VRConfig, this.m_CanvasVRConfig);
  46. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.PhotoMode, this.m_CanvasPhotoMode);
  47. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.MoviePlayer, this.m_CanvasMoviePlayer);
  48. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.MusicPlayer, this.m_CanvasMusicPlayer);
  49. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Selector, this.m_CanvasSelector);
  50. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Culture, this.m_CanvasCulture);
  51. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Trophy, this.m_CanvasTrophy);
  52. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.VIP, this.m_CanvasVIP);
  53. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.ChangeBG, this.m_CanvasChangeBG);
  54. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.RentalMaid, this.m_CanvasRentalMaid);
  55. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.Tutorial, this.m_CanvasTutorial);
  56. this.m_CanvasArray.Add(VRCanvasManager.VRCanvasType.DecideUseTouch, this.m_CanvasDecideUseTouch);
  57. }
  58. private void Start()
  59. {
  60. Camera componentInChildren = EventSystem.current.gameObject.GetComponentInChildren<Camera>();
  61. foreach (Canvas canvas in this.m_CanvasArray.Values)
  62. {
  63. canvas.worldCamera = componentInChildren;
  64. }
  65. }
  66. private void Update()
  67. {
  68. CanvasGroup component = this.m_CanvasParent.GetComponent<CanvasGroup>();
  69. if (!GameMain.Instance.OvrMgr.OvrCamera.IsUIShow)
  70. {
  71. component.interactable = false;
  72. component.blocksRaycasts = false;
  73. component.alpha = 0f;
  74. return;
  75. }
  76. bool isFallThrough = GameMain.Instance.OvrMgr.OvrCamera.IsFallThrough;
  77. if (isFallThrough)
  78. {
  79. component.interactable = true;
  80. component.blocksRaycasts = true;
  81. }
  82. else
  83. {
  84. component.interactable = false;
  85. component.blocksRaycasts = false;
  86. }
  87. bool isRotDown = GameMain.Instance.OvrMgr.OvrCamera.OvrTablet.IsRotDown;
  88. bool isSideBack = GameMain.Instance.OvrMgr.OvrCamera.OvrTablet.IsSideBack;
  89. Vector3 zero = Vector3.zero;
  90. zero.z = ((!isRotDown) ? 0f : 180f);
  91. zero.y = ((!isSideBack) ? 0f : 180f);
  92. zero.x = 0f;
  93. this.m_CanvasParent.transform.localEulerAngles = zero;
  94. }
  95. private void LateUpdate()
  96. {
  97. bool isUIShow = GameMain.Instance.OvrMgr.OvrCamera.IsUIShow;
  98. bool isFreeMode = SceneVRCommunication.Instance.IsFreeMode;
  99. bool uiNoMoveMode = SceneVRCommunication.Instance.UiNoMoveMode;
  100. bool uiNoHomeMode = SceneVRCommunication.Instance.UiNoHomeMode;
  101. bool flag = GameMain.Instance.MainCamera.IsFadeProc();
  102. bool flag2 = GameMain.Instance.MainCamera.IsFadeOut();
  103. bool isEnableSkip = SceneVRCommunication.Instance.IsEnableSkip;
  104. bool uiNoTimeMode = SceneVRCommunication.Instance.UiNoTimeMode;
  105. bool beforeShowUI = this.m_BeforeShowUI;
  106. bool beforeFreeMode = this.m_BeforeFreeMode;
  107. bool beforeNoMoveMode = this.m_BeforeNoMoveMode;
  108. this.m_BeforeShowUI = isUIShow;
  109. this.m_BeforeFreeMode = isFreeMode;
  110. this.m_BeforeNoMoveMode = uiNoMoveMode;
  111. CanvasGroup component = this.m_CanvasParent.GetComponent<CanvasGroup>();
  112. if (isUIShow)
  113. {
  114. if (uiNoHomeMode)
  115. {
  116. component.blocksRaycasts = false;
  117. component.alpha = 0f;
  118. }
  119. else if (!this.m_IsYotogiSelecting)
  120. {
  121. component.alpha = 1f;
  122. }
  123. else
  124. {
  125. component.blocksRaycasts = false;
  126. component.alpha = 0f;
  127. }
  128. }
  129. this.SetMainMenuButtonEnable(VRMainMenu.ButtonType.Edit, isFreeMode);
  130. this.SetMainMenuButtonEnable(VRMainMenu.ButtonType.Yotogi, isFreeMode);
  131. this.SetMainMenuButtonEnable(VRMainMenu.ButtonType.Time, isFreeMode && !uiNoTimeMode);
  132. this.SetMainMenuButtonEnable(VRMainMenu.ButtonType.ChangeBG, !uiNoMoveMode && isFreeMode);
  133. this.SetMainMenuButtonEnable(VRMainMenu.ButtonType.Skip, !isFreeMode && isEnableSkip);
  134. this.SetMainMenuButtonActive(VRMainMenu.ButtonType.Skip, !isFreeMode && isEnableSkip);
  135. if (!isFreeMode && beforeFreeMode)
  136. {
  137. this.ClearCanvasStack();
  138. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.MainMenu);
  139. }
  140. if (uiNoMoveMode && !beforeNoMoveMode)
  141. {
  142. this.ClearCanvasStack();
  143. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.MainMenu);
  144. }
  145. bool flag3 = false;
  146. flag3 |= this.m_CanvasVRConfig.gameObject.activeInHierarchy;
  147. flag3 |= this.m_CanvasSelector.gameObject.activeInHierarchy;
  148. flag3 |= this.m_CanvasDialog.gameObject.activeInHierarchy;
  149. flag3 |= this.m_CanvasTutorial.gameObject.activeInHierarchy;
  150. flag3 |= this.m_CanvasDecideUseTouch.gameObject.activeInHierarchy;
  151. if (flag3 && isUIShow)
  152. {
  153. component.blocksRaycasts = true;
  154. component.alpha = 1f;
  155. }
  156. GameMain.VRDeviceType vrdeviceTypeID = GameMain.Instance.VRDeviceTypeID;
  157. if (vrdeviceTypeID != GameMain.VRDeviceType.NON && vrdeviceTypeID != GameMain.VRDeviceType.RIFT && vrdeviceTypeID != GameMain.VRDeviceType.FOVE)
  158. {
  159. bool isHandCameraMode = GameMain.Instance.OvrMgr.OvrCamera.IsHandCameraMode;
  160. if (!this.m_IsYotogiSelecting)
  161. {
  162. if (isHandCameraMode && !this.m_BeforeHandCameraMode && isFreeMode && this.m_CanvasArray[VRCanvasManager.VRCanvasType.MainMenu].gameObject.activeInHierarchy)
  163. {
  164. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.PhotoMode);
  165. }
  166. else if (this.m_CanvasArray[VRCanvasManager.VRCanvasType.PhotoMode].gameObject.activeInHierarchy && ((!isHandCameraMode && this.m_BeforeHandCameraMode) || (!isFreeMode && this.m_BeforeFreeMode)))
  167. {
  168. this.m_CanvasPhotoMode.GetComponent<UICanvasFade>().FadeOut();
  169. if (this.m_CanvasArray[VRCanvasManager.VRCanvasType.MainMenu].gameObject.activeSelf)
  170. {
  171. this.ClearCanvasStack();
  172. }
  173. else if (!this.IsExistsBeforeVRCanvas())
  174. {
  175. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.MainMenu);
  176. }
  177. else
  178. {
  179. this.OpenBeforeVRCanvas();
  180. }
  181. }
  182. }
  183. this.m_BeforeHandCameraMode = isHandCameraMode;
  184. }
  185. if (flag || flag2)
  186. {
  187. component.blocksRaycasts = false;
  188. }
  189. }
  190. public void OpenVRCanvas()
  191. {
  192. this.m_CanvasParent.FadeIn();
  193. CanvasGroup component = this.m_CanvasParent.GetComponent<CanvasGroup>();
  194. component.alpha = 1f;
  195. component.interactable = true;
  196. component.blocksRaycasts = true;
  197. }
  198. public virtual void OpenVRCanvas(VRCanvasManager.VRCanvasType type)
  199. {
  200. if (!base.enabled)
  201. {
  202. return;
  203. }
  204. bool isUIShow = GameMain.Instance.OvrMgr.OvrCamera.IsUIShow;
  205. if (isUIShow)
  206. {
  207. this.m_CanvasParent.FadeIn();
  208. }
  209. GameObject mainCanvas = null;
  210. if (this.m_CanvasArray.ContainsKey(type))
  211. {
  212. mainCanvas = this.m_CanvasArray[type].gameObject;
  213. }
  214. this.ChangeCanvas(mainCanvas);
  215. }
  216. public void CloseVRCanvas()
  217. {
  218. foreach (KeyValuePair<VRCanvasManager.VRCanvasType, Canvas> keyValuePair in this.m_CanvasArray)
  219. {
  220. Canvas value = keyValuePair.Value;
  221. UICanvasFade component = value.GetComponent<UICanvasFade>();
  222. if (component)
  223. {
  224. value.gameObject.SetActive(false);
  225. }
  226. }
  227. CanvasGroup component2 = this.m_CanvasParent.GetComponent<CanvasGroup>();
  228. component2.alpha = 0f;
  229. component2.interactable = false;
  230. }
  231. public virtual void ChangeCanvas(GameObject MainCanvas)
  232. {
  233. if (!this.m_BeforeShowUI)
  234. {
  235. for (int i = 0; i < this.m_CanvasParent.transform.childCount; i++)
  236. {
  237. GameObject gameObject = this.m_CanvasParent.transform.GetChild(i).gameObject;
  238. UICanvasFade component = gameObject.GetComponent<UICanvasFade>();
  239. if (MainCanvas != gameObject)
  240. {
  241. if (component != null && gameObject.activeInHierarchy)
  242. {
  243. this.m_CanvasStack.Add(component);
  244. }
  245. if (component)
  246. {
  247. component.FadeOut(0f, false, null);
  248. }
  249. }
  250. else
  251. {
  252. component.FadeIn(0f, false, null);
  253. }
  254. }
  255. }
  256. else
  257. {
  258. List<UICanvasFade> list = new List<UICanvasFade>();
  259. for (int j = 0; j < this.m_CanvasParent.transform.childCount; j++)
  260. {
  261. GameObject gameObject2 = this.m_CanvasParent.transform.GetChild(j).gameObject;
  262. UICanvasFade component2 = gameObject2.GetComponent<UICanvasFade>();
  263. if (MainCanvas != gameObject2 && component2 != null && gameObject2.activeInHierarchy)
  264. {
  265. list.Add(component2);
  266. this.m_CanvasStack.Add(component2);
  267. }
  268. }
  269. for (int k = 1; k < list.Count; k++)
  270. {
  271. list[k].FadeOut();
  272. }
  273. if (list.Count > 0)
  274. {
  275. float fadeTime = list[0].fadeTime;
  276. bool isTimeScaling = list[0].isTimeScaling;
  277. list[0].FadeOut(fadeTime, isTimeScaling, delegate()
  278. {
  279. if (MainCanvas)
  280. {
  281. MainCanvas.GetComponent<UICanvasFade>().FadeIn();
  282. }
  283. });
  284. }
  285. else if (MainCanvas)
  286. {
  287. MainCanvas.GetComponent<UICanvasFade>().FadeIn();
  288. }
  289. }
  290. }
  291. public void OpenBeforeVRCanvas()
  292. {
  293. if (this.m_CanvasStack.Count <= 0)
  294. {
  295. return;
  296. }
  297. UICanvasFade uicanvasFade = this.m_CanvasStack[this.m_CanvasStack.Count - 1];
  298. this.m_CanvasStack.RemoveAt(this.m_CanvasStack.Count - 1);
  299. this.ChangeCanvas(uicanvasFade.gameObject);
  300. }
  301. public bool IsExistsBeforeVRCanvas()
  302. {
  303. return this.m_CanvasStack.Count > 0;
  304. }
  305. public void ClearCanvasStack()
  306. {
  307. this.m_CanvasStack.Clear();
  308. }
  309. public void UpdateCanvas()
  310. {
  311. foreach (Canvas canvas in this.m_CanvasArray.Values)
  312. {
  313. InterfaceVRCanvas[] componentsInChildren = canvas.GetComponentsInChildren<InterfaceVRCanvas>();
  314. for (int i = 0; i < componentsInChildren.Length; i++)
  315. {
  316. componentsInChildren[i].OnUpdateCanvas();
  317. }
  318. }
  319. bool flag = true;
  320. foreach (Canvas canvas2 in this.m_CanvasArray.Values)
  321. {
  322. if (canvas2.gameObject.activeSelf)
  323. {
  324. flag = false;
  325. break;
  326. }
  327. }
  328. if (flag)
  329. {
  330. bool isFreeMode = SceneVRCommunication.Instance.IsFreeMode;
  331. bool uiNoHomeMode = SceneVRCommunication.Instance.UiNoHomeMode;
  332. if (isFreeMode && !uiNoHomeMode)
  333. {
  334. UICanvasFade component = this.m_CanvasArray[VRCanvasManager.VRCanvasType.MainMenu].GetComponent<UICanvasFade>();
  335. component.FadeIn();
  336. }
  337. }
  338. }
  339. public void OpenVRConfig(UnityAction callback)
  340. {
  341. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.VRConfig);
  342. Canvas canvas = this.m_CanvasArray[VRCanvasManager.VRCanvasType.VRConfig];
  343. Transform transform = canvas.transform.Find("Button return");
  344. Button button = transform.GetComponent<Button>();
  345. UICanvasFade fade = canvas.GetComponent<UICanvasFade>();
  346. this.m_CallbackCloseVRConfig = callback;
  347. button.onClick.RemoveAllListeners();
  348. button.onClick.AddListener(delegate()
  349. {
  350. fade.FadeOut(fade.fadeTime, fade.isTimeScaling, delegate()
  351. {
  352. if (this.m_CallbackCloseVRConfig != null)
  353. {
  354. this.m_CallbackCloseVRConfig();
  355. }
  356. button.onClick.RemoveAllListeners();
  357. this.CloseVRCanvas();
  358. });
  359. });
  360. }
  361. public void OpenVRCulture(UnityAction callback_select, UnityAction callback_cancel)
  362. {
  363. VRCultivationSeedInventory componentInChildren = this.m_CanvasCulture.GetComponentInChildren<VRCultivationSeedInventory>();
  364. componentInChildren.m_OnEventButtonSelected = callback_select;
  365. componentInChildren.m_OnEventButtonClosed = callback_cancel;
  366. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.Culture);
  367. }
  368. public void OpenVRRentalMaid()
  369. {
  370. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.RentalMaid);
  371. }
  372. public virtual void OpenVRDecideUseTouch(UnityAction<bool> callback_is_oculus_touch)
  373. {
  374. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.DecideUseTouch);
  375. VRDecideUseTouch component = this.m_CanvasDecideUseTouch.GetComponent<VRDecideUseTouch>();
  376. component.StartDecideController(callback_is_oculus_touch);
  377. }
  378. public virtual void OpenVRTutorialMenu(UnityAction callback)
  379. {
  380. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.Tutorial);
  381. VRTutorialMenu component = this.m_CanvasTutorial.GetComponent<VRTutorialMenu>();
  382. component.Init(callback, "vrcom_tutorial.nei");
  383. }
  384. private void SetMainMenuButtonEnable(VRMainMenu.ButtonType buttonType, bool flag)
  385. {
  386. if (this.m_CanvasMainMenu == null)
  387. {
  388. return;
  389. }
  390. VRMainMenu component = this.m_CanvasMainMenu.GetComponent<VRMainMenu>();
  391. component.Event_SetButtonEnabled(buttonType, flag);
  392. }
  393. private void SetMainMenuButtonActive(VRMainMenu.ButtonType buttonType, bool flag)
  394. {
  395. if (this.m_CanvasMainMenu == null)
  396. {
  397. return;
  398. }
  399. VRMainMenu component = this.m_CanvasMainMenu.GetComponent<VRMainMenu>();
  400. component.Event_SetButtonActive(buttonType, flag);
  401. }
  402. public void SetSkipButtonEvent(UnityAction callback)
  403. {
  404. this.m_CallbackSkipEvent = callback;
  405. }
  406. public void ButtonEvent_Skip()
  407. {
  408. if (this.m_CallbackSkipEvent != null)
  409. {
  410. this.m_CallbackSkipEvent();
  411. }
  412. }
  413. public virtual Canvas GetVRCanvas(VRCanvasManager.VRCanvasType type)
  414. {
  415. if (!this.m_CanvasArray.ContainsKey(type))
  416. {
  417. return null;
  418. }
  419. return this.m_CanvasArray[type];
  420. }
  421. public virtual void StartKaraokeMode(Action callback_end_karaoke_mode)
  422. {
  423. this.m_CallbackEndKaraokeMode = callback_end_karaoke_mode;
  424. if (!this.m_KaraokeDataManager)
  425. {
  426. GameObject gameObject = Resources.Load<GameObject>("SceneVRCommunication/Tablet/Karaoke/Prefab/uGUI Karaoke");
  427. if (gameObject)
  428. {
  429. GameObject gameObject2 = UnityEngine.Object.Instantiate<GameObject>(gameObject);
  430. Transform transform = gameObject2.transform;
  431. transform.SetParent(base.transform.parent, false);
  432. transform.localPosition = Vector3.zero;
  433. transform.localEulerAngles = Vector3.right * 90f;
  434. transform.localScale = Vector3.one;
  435. this.m_KaraokeDataManager = gameObject2.GetComponent<KaraokeDataManager>();
  436. }
  437. }
  438. base.enabled = false;
  439. UICanvasFade canvasParent = this.CanvasParent;
  440. if (canvasParent)
  441. {
  442. canvasParent.gameObject.SetActive(false);
  443. }
  444. }
  445. public virtual void EndKaraokeMode()
  446. {
  447. base.enabled = true;
  448. UICanvasFade canvasParent = this.CanvasParent;
  449. if (canvasParent)
  450. {
  451. canvasParent.gameObject.SetActive(true);
  452. }
  453. if (this.m_CallbackEndKaraokeMode == null)
  454. {
  455. Debug.LogWarning("[VRCanvasManager]カラオケモード終了時のコールバックが見つかりません");
  456. return;
  457. }
  458. this.m_CallbackEndKaraokeMode();
  459. if (this.m_KaraokeDataManager == null)
  460. {
  461. Debug.LogWarning("[VRCanvasManager]カラオケモード用のUIのキャッシュが見つかりません");
  462. }
  463. UnityEngine.Object.Destroy(this.m_KaraokeDataManager.gameObject);
  464. }
  465. protected static VRCanvasManager m_Instance;
  466. [SerializeField]
  467. [Tooltip("デバッグ用:メインメニューのボタンをすべて有効にする")]
  468. protected bool Debug_IsMainMenuButtonEnabled;
  469. [SerializeField]
  470. [Tooltip("VR用キャンバスの親オブジェクト")]
  471. protected UICanvasFade m_CanvasParent;
  472. [SerializeField]
  473. protected Canvas m_CanvasMainMenu;
  474. [SerializeField]
  475. protected Canvas m_CanvasManual;
  476. [SerializeField]
  477. protected Canvas m_CanvasNeiLetter;
  478. [SerializeField]
  479. protected Canvas m_CanvasDialog;
  480. [SerializeField]
  481. protected Canvas m_CanvasVRConfig;
  482. [SerializeField]
  483. protected Canvas m_CanvasPhotoMode;
  484. [SerializeField]
  485. protected Canvas m_CanvasMoviePlayer;
  486. [SerializeField]
  487. protected Canvas m_CanvasMusicPlayer;
  488. [SerializeField]
  489. protected Canvas m_CanvasSelector;
  490. [SerializeField]
  491. protected Canvas m_CanvasCulture;
  492. [SerializeField]
  493. protected Canvas m_CanvasTrophy;
  494. [SerializeField]
  495. protected Canvas m_CanvasVIP;
  496. [SerializeField]
  497. protected Canvas m_CanvasChangeBG;
  498. [SerializeField]
  499. protected Canvas m_CanvasRentalMaid;
  500. [SerializeField]
  501. protected Canvas m_CanvasTutorial;
  502. [SerializeField]
  503. protected Canvas m_CanvasDecideUseTouch;
  504. private Dictionary<VRCanvasManager.VRCanvasType, Canvas> m_CanvasArray = new Dictionary<VRCanvasManager.VRCanvasType, Canvas>();
  505. private List<UICanvasFade> m_CanvasStack = new List<UICanvasFade>();
  506. private bool m_BeforeHandCameraMode;
  507. private bool m_BeforeShowUI;
  508. private bool m_BeforeFreeMode;
  509. private bool m_BeforeNoMoveMode;
  510. private bool m_IsYotogiSelecting;
  511. private UnityAction m_CallbackSkipEvent;
  512. protected Action m_CallbackEndKaraokeMode;
  513. protected KaraokeDataManager m_KaraokeDataManager;
  514. public UnityAction m_CallbackCloseVRConfig;
  515. public enum VRCanvasType
  516. {
  517. NONE,
  518. MainMenu,
  519. Manual,
  520. NeiLetter,
  521. Dialog,
  522. VRConfig,
  523. PhotoMode,
  524. MoviePlayer,
  525. MusicPlayer,
  526. Selector,
  527. Culture,
  528. Trophy,
  529. VIP,
  530. ChangeBG,
  531. RentalMaid,
  532. Tutorial,
  533. DecideUseTouch
  534. }
  535. }