VRCanvasManager.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  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 && this.m_CanvasArray != null)
  333. {
  334. Canvas canvas3 = null;
  335. if (this.m_CanvasArray.TryGetValue(VRCanvasManager.VRCanvasType.MainMenu, out canvas3))
  336. {
  337. UICanvasFade component = this.m_CanvasArray[VRCanvasManager.VRCanvasType.MainMenu].GetComponent<UICanvasFade>();
  338. component.FadeIn();
  339. }
  340. }
  341. }
  342. }
  343. public void OpenVRConfig(UnityAction callback)
  344. {
  345. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.VRConfig);
  346. Canvas canvas = this.m_CanvasArray[VRCanvasManager.VRCanvasType.VRConfig];
  347. Transform transform = canvas.transform.Find("Button return");
  348. Button button = transform.GetComponent<Button>();
  349. UICanvasFade fade = canvas.GetComponent<UICanvasFade>();
  350. this.m_CallbackCloseVRConfig = callback;
  351. button.onClick.RemoveAllListeners();
  352. button.onClick.AddListener(delegate()
  353. {
  354. fade.FadeOut(fade.fadeTime, fade.isTimeScaling, delegate()
  355. {
  356. if (this.m_CallbackCloseVRConfig != null)
  357. {
  358. this.m_CallbackCloseVRConfig();
  359. }
  360. button.onClick.RemoveAllListeners();
  361. this.CloseVRCanvas();
  362. });
  363. });
  364. }
  365. public void OpenVRCulture(UnityAction callback_select, UnityAction callback_cancel)
  366. {
  367. VRCultivationSeedInventory componentInChildren = this.m_CanvasCulture.GetComponentInChildren<VRCultivationSeedInventory>();
  368. componentInChildren.m_OnEventButtonSelected = callback_select;
  369. componentInChildren.m_OnEventButtonClosed = callback_cancel;
  370. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.Culture);
  371. }
  372. public void OpenVRRentalMaid()
  373. {
  374. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.RentalMaid);
  375. }
  376. public virtual void OpenVRDecideUseTouch(UnityAction<bool> callback_is_oculus_touch)
  377. {
  378. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.DecideUseTouch);
  379. VRDecideUseTouch component = this.m_CanvasDecideUseTouch.GetComponent<VRDecideUseTouch>();
  380. component.StartDecideController(callback_is_oculus_touch);
  381. }
  382. public virtual void OpenVRTutorialMenu(UnityAction callback)
  383. {
  384. this.OpenVRCanvas(VRCanvasManager.VRCanvasType.Tutorial);
  385. VRTutorialMenu component = this.m_CanvasTutorial.GetComponent<VRTutorialMenu>();
  386. component.Init(callback, "vrcom_tutorial.nei");
  387. }
  388. private void SetMainMenuButtonEnable(VRMainMenu.ButtonType buttonType, bool flag)
  389. {
  390. if (this.m_CanvasMainMenu == null)
  391. {
  392. return;
  393. }
  394. VRMainMenu component = this.m_CanvasMainMenu.GetComponent<VRMainMenu>();
  395. component.Event_SetButtonEnabled(buttonType, flag);
  396. }
  397. private void SetMainMenuButtonActive(VRMainMenu.ButtonType buttonType, bool flag)
  398. {
  399. if (this.m_CanvasMainMenu == null)
  400. {
  401. return;
  402. }
  403. VRMainMenu component = this.m_CanvasMainMenu.GetComponent<VRMainMenu>();
  404. component.Event_SetButtonActive(buttonType, flag);
  405. }
  406. public void SetSkipButtonEvent(UnityAction callback)
  407. {
  408. this.m_CallbackSkipEvent = callback;
  409. }
  410. public void ButtonEvent_Skip()
  411. {
  412. if (this.m_CallbackSkipEvent != null)
  413. {
  414. this.m_CallbackSkipEvent();
  415. }
  416. }
  417. public virtual Canvas GetVRCanvas(VRCanvasManager.VRCanvasType type)
  418. {
  419. if (!this.m_CanvasArray.ContainsKey(type))
  420. {
  421. return null;
  422. }
  423. return this.m_CanvasArray[type];
  424. }
  425. public virtual void StartKaraokeMode(Action callback_end_karaoke_mode)
  426. {
  427. this.m_CallbackEndKaraokeMode = callback_end_karaoke_mode;
  428. if (!this.m_KaraokeDataManager)
  429. {
  430. GameObject gameObject = Resources.Load<GameObject>("SceneVRCommunication/Tablet/Karaoke/Prefab/uGUI Karaoke");
  431. if (gameObject)
  432. {
  433. GameObject gameObject2 = UnityEngine.Object.Instantiate<GameObject>(gameObject);
  434. Transform transform = gameObject2.transform;
  435. transform.SetParent(base.transform.parent, false);
  436. transform.localPosition = Vector3.zero;
  437. transform.localEulerAngles = Vector3.right * 90f;
  438. transform.localScale = Vector3.one;
  439. this.m_KaraokeDataManager = gameObject2.GetComponent<KaraokeDataManager>();
  440. }
  441. }
  442. base.enabled = false;
  443. UICanvasFade canvasParent = this.CanvasParent;
  444. if (canvasParent)
  445. {
  446. canvasParent.gameObject.SetActive(false);
  447. }
  448. }
  449. public virtual void EndKaraokeMode()
  450. {
  451. base.enabled = true;
  452. UICanvasFade canvasParent = this.CanvasParent;
  453. if (canvasParent)
  454. {
  455. canvasParent.gameObject.SetActive(true);
  456. }
  457. if (this.m_CallbackEndKaraokeMode == null)
  458. {
  459. Debug.LogWarning("[VRCanvasManager]カラオケモード終了時のコールバックが見つかりません");
  460. return;
  461. }
  462. this.m_CallbackEndKaraokeMode();
  463. if (this.m_KaraokeDataManager == null)
  464. {
  465. Debug.LogWarning("[VRCanvasManager]カラオケモード用のUIのキャッシュが見つかりません");
  466. }
  467. UnityEngine.Object.Destroy(this.m_KaraokeDataManager.gameObject);
  468. }
  469. protected static VRCanvasManager m_Instance;
  470. [SerializeField]
  471. [Tooltip("デバッグ用:メインメニューのボタンをすべて有効にする")]
  472. protected bool Debug_IsMainMenuButtonEnabled;
  473. [SerializeField]
  474. [Tooltip("VR用キャンバスの親オブジェクト")]
  475. protected UICanvasFade m_CanvasParent;
  476. [SerializeField]
  477. protected Canvas m_CanvasMainMenu;
  478. [SerializeField]
  479. protected Canvas m_CanvasManual;
  480. [SerializeField]
  481. protected Canvas m_CanvasNeiLetter;
  482. [SerializeField]
  483. protected Canvas m_CanvasDialog;
  484. [SerializeField]
  485. protected Canvas m_CanvasVRConfig;
  486. [SerializeField]
  487. protected Canvas m_CanvasPhotoMode;
  488. [SerializeField]
  489. protected Canvas m_CanvasMoviePlayer;
  490. [SerializeField]
  491. protected Canvas m_CanvasMusicPlayer;
  492. [SerializeField]
  493. protected Canvas m_CanvasSelector;
  494. [SerializeField]
  495. protected Canvas m_CanvasCulture;
  496. [SerializeField]
  497. protected Canvas m_CanvasTrophy;
  498. [SerializeField]
  499. protected Canvas m_CanvasVIP;
  500. [SerializeField]
  501. protected Canvas m_CanvasChangeBG;
  502. [SerializeField]
  503. protected Canvas m_CanvasRentalMaid;
  504. [SerializeField]
  505. protected Canvas m_CanvasTutorial;
  506. [SerializeField]
  507. protected Canvas m_CanvasDecideUseTouch;
  508. private Dictionary<VRCanvasManager.VRCanvasType, Canvas> m_CanvasArray = new Dictionary<VRCanvasManager.VRCanvasType, Canvas>();
  509. private List<UICanvasFade> m_CanvasStack = new List<UICanvasFade>();
  510. private bool m_BeforeHandCameraMode;
  511. private bool m_BeforeShowUI;
  512. private bool m_BeforeFreeMode;
  513. private bool m_BeforeNoMoveMode;
  514. private bool m_IsYotogiSelecting;
  515. private UnityAction m_CallbackSkipEvent;
  516. protected Action m_CallbackEndKaraokeMode;
  517. protected KaraokeDataManager m_KaraokeDataManager;
  518. public UnityAction m_CallbackCloseVRConfig;
  519. public enum VRCanvasType
  520. {
  521. NONE,
  522. MainMenu,
  523. Manual,
  524. NeiLetter,
  525. Dialog,
  526. VRConfig,
  527. PhotoMode,
  528. MoviePlayer,
  529. MusicPlayer,
  530. Selector,
  531. Culture,
  532. Trophy,
  533. VIP,
  534. ChangeBG,
  535. RentalMaid,
  536. Tutorial,
  537. DecideUseTouch
  538. }
  539. }