SystemShortcut.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. using System;
  2. using System.Collections.Generic;
  3. using I2.Loc;
  4. using UnityEngine;
  5. using UnityEngine.SceneManagement;
  6. public class SystemShortcut : MonoBehaviour
  7. {
  8. private void Awake()
  9. {
  10. this.m_uiCam = base.gameObject.transform.parent.Find("Camera").GetComponent<Camera>();
  11. this.m_uiPanel = base.gameObject.GetComponent<UIPanel>();
  12. this.m_goBase = UTY.GetChildObject(base.gameObject, "Base", false);
  13. this.m_uiBase = this.m_goBase.GetComponent<UISprite>();
  14. this.m_hitArea = this.m_goBase.GetComponent<BoxCollider>();
  15. this.m_goBaseVR = UTY.GetChildObject(base.gameObject, "BaseVR", false);
  16. this.m_uiBaseVR = this.m_goBaseVR.GetComponent<UISprite>();
  17. this.m_goBaseVR.SetActive(false);
  18. this.m_goGear = UTY.GetChildObject(base.gameObject, "Gear", false);
  19. this.m_uiGear = this.m_goGear.GetComponent<UIButton>();
  20. EventDelegate.Add(this.m_uiGear.onClick, new EventDelegate.Callback(this.OnClick_Gear));
  21. this.m_aryDgOnClick[0] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Config));
  22. this.m_aryDgOnClick[1] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Exit));
  23. this.m_aryDgOnClick[2] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Info));
  24. this.m_aryDgOnClick[3] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Ss));
  25. this.m_aryDgOnClick[4] = new EventDelegate(new EventDelegate.Callback(this.OnClick_SsUi));
  26. this.m_aryDgOnClick[5] = new EventDelegate(new EventDelegate.Callback(this.OnClick_ToTitle));
  27. this.m_aryDgOnClick[6] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Shop));
  28. this.m_aryDgOnClick[7] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRCommHome));
  29. this.m_aryDgOnClick[8] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRHelp));
  30. this.m_aryDgOnClick[9] = new EventDelegate(new EventDelegate.Callback(this.OnClick_Help));
  31. this.m_aryDgOnClick[10] = new EventDelegate(new EventDelegate.Callback(this.OnClick_VRAvatar));
  32. this.m_aryDgOnClick[11] = new EventDelegate(new EventDelegate.Callback(this.OnClickDictionary));
  33. Dictionary<int, string> dictionary = new Dictionary<int, string>();
  34. dictionary.Add(0, "System/ショートカット/コンフィグ");
  35. dictionary.Add(3, "System/ショートカット/UI無し スクリーンショット");
  36. dictionary.Add(4, "System/ショートカット/UI有り スクリーンショット");
  37. if (Product.lockDLCSiteLink)
  38. {
  39. dictionary.Add(6, "System/ショートカット/オフィシャルサイト");
  40. }
  41. else
  42. {
  43. dictionary.Add(6, "System/ショートカット/ショップ");
  44. }
  45. dictionary.Add(5, "System/ショートカット/タイトルへ");
  46. dictionary.Add(2, "System/ショートカット/ゲーム情報");
  47. dictionary.Add(1, "System/ショートカット/終了");
  48. dictionary.Add(7, "System/ショートカット/エンパイアクラブに帰る");
  49. dictionary.Add(8, "System/ショートカット/VRヘルプ");
  50. dictionary.Add(9, "System/ショートカット/シーンのヘルプ");
  51. dictionary.Add(10, "System/ショートカット/バーチャル アバター スタジオ");
  52. dictionary.Add(11, "System/ショートカット/辞書");
  53. for (int i = 0; i < this.m_aryObjPath.Length; i++)
  54. {
  55. this.m_goBtn[i] = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[i], false);
  56. this.m_uiBtn[i] = this.m_goBtn[i].GetComponent<UIButton>();
  57. EventDelegate.Add(this.m_uiBtn[i].onClick, this.m_aryDgOnClick[i]);
  58. if (dictionary.ContainsKey(i))
  59. {
  60. UIEventTrigger component = this.m_goBtn[i].GetComponent<UIEventTrigger>();
  61. string text = dictionary[i];
  62. EventDelegate.Add(component.onHoverOver, delegate()
  63. {
  64. this.VisibleExplanation(text, true);
  65. });
  66. EventDelegate.Add(component.onHoverOut, delegate()
  67. {
  68. this.VisibleExplanation(text, false);
  69. });
  70. EventDelegate.Add(component.onDragStart, delegate()
  71. {
  72. this.VisibleExplanation(text, false);
  73. });
  74. }
  75. }
  76. UIWidget uiBaseVR = this.m_uiBaseVR;
  77. Color color = new Color(1f, 1f, 1f, 0f);
  78. this.m_uiBase.color = color;
  79. uiBaseVR.color = color;
  80. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 0.3f);
  81. this.m_spriteExplanation = UTY.GetChildObject(base.gameObject, "Explanation", false).GetComponent<UISprite>();
  82. this.m_labelExplanation = UTY.GetChildObject(this.m_spriteExplanation.gameObject, "Value", false).GetComponent<UILabel>();
  83. this.m_spriteExplanation.gameObject.SetActive(false);
  84. this.dicBGSizeType.Add(SystemShortcut.BGSizeType.Long, 380);
  85. this.dicBGSizeType.Add(SystemShortcut.BGSizeType.Short, 340);
  86. int num = 0;
  87. if (Product.isJapan)
  88. {
  89. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[11], false);
  90. if (childObject != null)
  91. {
  92. childObject.SetActive(false);
  93. num++;
  94. }
  95. }
  96. if (GameMain.Instance.CMSystem.NetUse)
  97. {
  98. int num2 = this.dicBGSizeType[SystemShortcut.BGSizeType.Long];
  99. }
  100. else
  101. {
  102. int num2 = this.dicBGSizeType[SystemShortcut.BGSizeType.Short];
  103. GameObject childObject2 = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[6], false);
  104. childObject2.SetActive(false);
  105. num++;
  106. }
  107. this.m_uiBase.width = 420 - num * 40;
  108. Vector2 vector = new Vector2(700f, 110f);
  109. this.m_hitArea.size = new Vector3((float)this.m_uiBase.width + vector.x, (float)this.m_uiBase.height + vector.y, 0f);
  110. Vector3 center = this.m_uiBase.GetComponent<BoxCollider>().center;
  111. center.x += vector.x / 2f;
  112. center.y -= 50f;
  113. this.m_hitArea.center = center;
  114. UTY.GetChildObject(this.m_goBase, "Grid", false).GetComponent<UIGrid>().repositionNow = true;
  115. SceneManager.activeSceneChanged += this.OnActiveSceneChanged;
  116. SceneManager.sceneUnloaded += this.OnSceneUnloaded;
  117. if (Product.lockDLCSiteLink)
  118. {
  119. this.m_goBtn[6].GetComponentInChildren<UIButton>().normalSprite = "systemicon_home";
  120. }
  121. }
  122. private void OnClick_Gear()
  123. {
  124. if (this.m_bEnableBase)
  125. {
  126. this.BaseClose();
  127. }
  128. else if (!this.m_bEnableBase)
  129. {
  130. this.BaseOpen();
  131. }
  132. }
  133. private void BaseClose()
  134. {
  135. if (this.m_bEnableBase)
  136. {
  137. this.m_bEnableBase = false;
  138. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  139. {
  140. "from",
  141. this.m_uiBase.color.a,
  142. "to",
  143. 0f,
  144. "time",
  145. 0.25f,
  146. "onUpdate",
  147. "UpdateBase"
  148. }));
  149. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 0.3f);
  150. }
  151. }
  152. private void BaseOpen()
  153. {
  154. if (!this.m_bEnableBase)
  155. {
  156. this.m_bEnableBase = true;
  157. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  158. {
  159. "from",
  160. this.m_uiBase.color.a,
  161. "to",
  162. 1f,
  163. "time",
  164. 0.25f,
  165. "onUpdate",
  166. "UpdateBase"
  167. }));
  168. this.m_uiGear.defaultColor = new Color(1f, 1f, 1f, 1f);
  169. }
  170. }
  171. private void UpdateBase(float f_fValue)
  172. {
  173. UIWidget uiBaseVR = this.m_uiBaseVR;
  174. Color color = new Color(1f, 1f, 1f, f_fValue);
  175. this.m_uiBase.color = color;
  176. uiBaseVR.color = color;
  177. }
  178. private void PanelClose()
  179. {
  180. if (this.m_bEnablePanel)
  181. {
  182. this.m_bEnablePanel = false;
  183. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  184. {
  185. "from",
  186. this.m_uiPanel.alpha,
  187. "to",
  188. 0f,
  189. "time",
  190. 0.25f,
  191. "onUpdate",
  192. "UpdatePanel"
  193. }));
  194. }
  195. }
  196. private void PanelOpen()
  197. {
  198. if (!this.m_bEnablePanel)
  199. {
  200. this.m_bEnablePanel = true;
  201. iTween.ValueTo(base.gameObject, iTween.Hash(new object[]
  202. {
  203. "from",
  204. this.m_uiPanel.alpha,
  205. "to",
  206. 1f,
  207. "time",
  208. 0.25f,
  209. "onUpdate",
  210. "UpdatePanel"
  211. }));
  212. }
  213. }
  214. private void UpdatePanel(float f_fValue)
  215. {
  216. this.m_uiPanel.alpha = f_fValue;
  217. }
  218. private void OnClick_Config()
  219. {
  220. if (!this.m_bEnablePanel || BaseMgr<ConfigMgr>.Instance.IsOpenConfigPanel())
  221. {
  222. return;
  223. }
  224. BaseMgr<ConfigMgr>.Instance.OpenConfigPanel();
  225. if (ConfigVRCtrl.IsOpen())
  226. {
  227. ConfigVRCtrl.Close(true);
  228. }
  229. this.BaseClose();
  230. }
  231. private void OnClick_Exit()
  232. {
  233. if (!this.m_bEnablePanel)
  234. {
  235. return;
  236. }
  237. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/終了しますか?", null, SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToEnd), new SystemDialog.OnClick(this.OnCancel));
  238. this.BaseClose();
  239. }
  240. private void OnClick_Info()
  241. {
  242. if (!this.m_bEnablePanel)
  243. {
  244. return;
  245. }
  246. string text = Product.gameTitle;
  247. if (text.IndexOf("It's") != -1)
  248. {
  249. text = text.Replace("It's", "\nIt's");
  250. }
  251. string text2 = "カスタムメイド3D 2";
  252. string text3 = string.Concat(new string[]
  253. {
  254. text,
  255. "\nVersion ",
  256. GameUty.GetGameVersionText(),
  257. " (BuildVersion : ",
  258. GameUty.GetBuildVersionText(),
  259. ")"
  260. });
  261. if (!string.IsNullOrEmpty(GameMain.Instance.CMSystem.CM3D2Path))
  262. {
  263. string text4 = text3;
  264. text3 = string.Concat(new string[]
  265. {
  266. text4,
  267. "\n",
  268. text2,
  269. "\nVersion ",
  270. GameUty.GetLegacyGameVersionText()
  271. });
  272. }
  273. GameMain.Instance.SysDlg.Show(text3, SystemDialog.TYPE.OK, new SystemDialog.OnClick(this.OnCancel), null);
  274. this.BaseClose();
  275. }
  276. private void OnClick_Ss()
  277. {
  278. GameMain.Instance.MainCamera.ScreenShot(true);
  279. }
  280. private void OnClick_SsUi()
  281. {
  282. this.VisibleExplanation(string.Empty, false);
  283. GameMain.Instance.MainCamera.ScreenShot(false);
  284. }
  285. private void OnClick_ToTitle()
  286. {
  287. if (!this.m_bEnablePanel)
  288. {
  289. return;
  290. }
  291. if (Application.loadedLevelName != "SceneTitle")
  292. {
  293. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/タイトルに戻りますか?", null, SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToTitle), new SystemDialog.OnClick(this.OnCancel));
  294. }
  295. else
  296. {
  297. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/現在タイトルに戻れません。", null, SystemDialog.TYPE.OK, new SystemDialog.OnClick(this.OnCancel), null);
  298. }
  299. this.BaseClose();
  300. }
  301. private void OnClick_Shop()
  302. {
  303. if (Product.lockDLCSiteLink)
  304. {
  305. Application.OpenURL("http://com3d2.world/?shop");
  306. }
  307. else
  308. {
  309. Application.OpenURL(GameMain.Instance.CMSystem.ShopURL);
  310. }
  311. }
  312. private void OnClick_VRCommHome()
  313. {
  314. GameMain.Instance.SysDlg.Show("エンパイアクラブに帰りますか?", SystemDialog.TYPE.OK_CANCEL, new SystemDialog.OnClick(this.OnToHome), new SystemDialog.OnClick(this.OnCancel));
  315. this.BaseClose();
  316. }
  317. private void OnToHome()
  318. {
  319. }
  320. private void OnClick_VRHelp()
  321. {
  322. }
  323. private void OnClick_Help()
  324. {
  325. if (!this.m_bEnablePanel)
  326. {
  327. return;
  328. }
  329. if (uGUITutorialPanel.IsOpened())
  330. {
  331. return;
  332. }
  333. string text = this.strSceneHelpName;
  334. if (string.IsNullOrEmpty(text))
  335. {
  336. text = GameMain.Instance.GetNowSceneName();
  337. if (string.IsNullOrEmpty(text))
  338. {
  339. text = SceneManager.GetActiveScene().name;
  340. }
  341. }
  342. if (uGUITutorialPanel.IsExistTutorial(text))
  343. {
  344. uGUITutorialPanel.OpenTutorial(text, null, true);
  345. }
  346. else
  347. {
  348. NDebug.Warning(string.Format("シーン名「{0}」のチュートリアルは存在しません", text));
  349. }
  350. this.BaseClose();
  351. }
  352. private void OnClick_VRAvatar()
  353. {
  354. ControllerShortcutWindow controllerShortcutWindow = OvrIK.CreateUI();
  355. controllerShortcutWindow.Open();
  356. this.BaseClose();
  357. }
  358. private void OnClick_VRConfig()
  359. {
  360. if (!this.m_bEnablePanel)
  361. {
  362. return;
  363. }
  364. if (ConfigVRCtrl.IsOpen())
  365. {
  366. return;
  367. }
  368. ConfigVRCtrl.Open(null);
  369. if (BaseMgr<ConfigMgr>.Instance.IsOpenConfigPanel())
  370. {
  371. BaseMgr<ConfigMgr>.Instance.CloseConfigPanel();
  372. }
  373. this.BaseClose();
  374. }
  375. private void OnClickDictionary()
  376. {
  377. if (!uGUITutorialPanel.IsOpened())
  378. {
  379. uGUITutorialPanel.OpenTutorial("WordDictionary", null, true);
  380. }
  381. }
  382. private void OnToEnd()
  383. {
  384. GameMain.Instance.ToApplicationQuit(true);
  385. }
  386. private void OnToTitle()
  387. {
  388. GameMain.Instance.SysDlg.Close();
  389. GameMain.Instance.LoadScene("SceneToTitle");
  390. GameMain.Instance.MainCamera.FadeOut(0f, false, null, true, default(Color));
  391. }
  392. private void OnCancel()
  393. {
  394. GameMain.Instance.SysDlg.Close();
  395. }
  396. private void Start()
  397. {
  398. this.m_sys = GameMain.Instance.CMSystem;
  399. this.m_bEnablePanel = (this.m_bAlways = this.m_sys.SysButtonShowAlways);
  400. if (this.m_bAlways)
  401. {
  402. this.m_uiPanel.alpha = 1f;
  403. }
  404. else
  405. {
  406. this.m_uiPanel.alpha = 0f;
  407. }
  408. this.SetVRAvatarButtonInteractable();
  409. }
  410. private void Update()
  411. {
  412. if (this.m_sys.SysButtonShowAlways != this.m_bAlways)
  413. {
  414. if (this.m_sys.SysButtonShowAlways)
  415. {
  416. this.m_uiPanel.alpha = 1f;
  417. this.PanelOpen();
  418. }
  419. else
  420. {
  421. this.PanelClose();
  422. }
  423. this.m_bAlways = this.m_sys.SysButtonShowAlways;
  424. }
  425. if (!this.m_bAlways)
  426. {
  427. if (!GameMain.Instance.VRMode)
  428. {
  429. Ray ray = this.m_uiCam.ScreenPointToRay(Input.mousePosition);
  430. RaycastHit raycastHit = default(RaycastHit);
  431. if (this.m_hitArea.Raycast(ray, out raycastHit, 3.40282347E+38f))
  432. {
  433. if (!this.m_bEnablePanel)
  434. {
  435. this.PanelOpen();
  436. }
  437. }
  438. else if (this.m_bEnablePanel)
  439. {
  440. this.PanelClose();
  441. }
  442. }
  443. else
  444. {
  445. Vector3 ovrVirtualMousePos = GameMain.Instance.OvrMgr.SystemUICamera.GetOvrVirtualMousePos(true);
  446. Vector3 ovrVirtualMousePos2 = GameMain.Instance.OvrMgr.SystemUICamera.GetOvrVirtualMousePos(false);
  447. Ray ray2 = this.m_uiCam.ScreenPointToRay(ovrVirtualMousePos);
  448. Ray ray3 = this.m_uiCam.ScreenPointToRay(ovrVirtualMousePos2);
  449. RaycastHit raycastHit2 = default(RaycastHit);
  450. if (this.m_hitArea.Raycast(ray2, out raycastHit2, 3.40282347E+38f) || this.m_hitArea.Raycast(ray3, out raycastHit2, 3.40282347E+38f))
  451. {
  452. if (!this.m_bEnablePanel)
  453. {
  454. this.PanelOpen();
  455. }
  456. }
  457. else if (this.m_bEnablePanel)
  458. {
  459. this.PanelClose();
  460. }
  461. }
  462. }
  463. }
  464. public void VisibleExplanation(string text, bool visible)
  465. {
  466. if (visible)
  467. {
  468. this.m_labelExplanation.text = LocalizationManager.GetTranslation(text, true, 0, true, false, null, null);
  469. this.m_labelExplanation.width = 0;
  470. this.m_labelExplanation.MakePixelPerfect();
  471. UISprite component = this.m_spriteExplanation.GetComponent<UISprite>();
  472. component.width = this.m_labelExplanation.width + 15;
  473. }
  474. this.m_spriteExplanation.gameObject.SetActive(visible);
  475. }
  476. private void OnActiveSceneChanged(Scene beforeScene, Scene activeScene)
  477. {
  478. this.SetHelpButtonInteractable();
  479. uGUITutorialPanel.CloseTutorial(true, false);
  480. this.SetVRAvatarButtonInteractable();
  481. }
  482. private void OnSceneUnloaded(Scene unloadedScene)
  483. {
  484. this.strSceneHelpName = string.Empty;
  485. }
  486. public string strSceneHelpName
  487. {
  488. get
  489. {
  490. return this.m_strSceneHelpName;
  491. }
  492. set
  493. {
  494. if (string.IsNullOrEmpty(value))
  495. {
  496. this.m_strSceneHelpName = string.Empty;
  497. this.SetHelpButtonInteractable();
  498. return;
  499. }
  500. if (!uGUITutorialPanel.IsExistTutorial(value))
  501. {
  502. this.m_strSceneHelpName = string.Empty;
  503. this.SetHelpButtonInteractable();
  504. NDebug.Warning(string.Format("チュートリアル「{0}」は存在しないので、\nシーン名を利用します。", value));
  505. return;
  506. }
  507. this.m_strSceneHelpName = value;
  508. this.SetHelpButtonInteractable();
  509. }
  510. }
  511. private void SetHelpButtonInteractable()
  512. {
  513. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  514. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  515. UIButton component = childObject.GetComponent<UIButton>();
  516. string text = this.strSceneHelpName;
  517. if (string.IsNullOrEmpty(text))
  518. {
  519. text = GameMain.Instance.GetNowSceneName();
  520. if (string.IsNullOrEmpty(text))
  521. {
  522. text = SceneManager.GetActiveScene().name;
  523. }
  524. }
  525. if (uGUITutorialPanel.IsExistTutorial(text))
  526. {
  527. component.isEnabled = true;
  528. }
  529. else
  530. {
  531. component.isEnabled = false;
  532. }
  533. }
  534. public bool helpButtonInteractable
  535. {
  536. get
  537. {
  538. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  539. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  540. UIButton component = childObject.GetComponent<UIButton>();
  541. return component.isEnabled;
  542. }
  543. set
  544. {
  545. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[9], false);
  546. NDebug.Assert(childObject != null, "ヘルプ用ボタンの取得に失敗しました。");
  547. UIButton component = childObject.GetComponent<UIButton>();
  548. component.isEnabled = value;
  549. }
  550. }
  551. private void SetVRAvatarButtonInteractable()
  552. {
  553. GameObject childObject = UTY.GetChildObject(base.gameObject, this.m_aryObjPath[10], false);
  554. NDebug.Assert(childObject != null, "VRアバターボタンの取得に失敗しました。");
  555. if (GameMain.Instance == null)
  556. {
  557. return;
  558. }
  559. GameMain.VRDeviceType vrdeviceTypeID = GameMain.Instance.VRDeviceTypeID;
  560. if (vrdeviceTypeID != GameMain.VRDeviceType.VIVE && vrdeviceTypeID != GameMain.VRDeviceType.RIFT_TOUCH)
  561. {
  562. childObject.SetActive(false);
  563. return;
  564. }
  565. string nowSceneName = GameMain.Instance.GetNowSceneName();
  566. if (string.IsNullOrEmpty(nowSceneName) || GameMain.Instance.CMSystem.SConfig.OvrIkAllSceneEnable || nowSceneName == "SceneEdit" || nowSceneName == "ScenePhotoMode" || nowSceneName.IndexOf("SceneDance_") == 0)
  567. {
  568. childObject.SetActive(true);
  569. }
  570. else
  571. {
  572. childObject.SetActive(false);
  573. }
  574. }
  575. private string[] m_aryObjPath = new string[]
  576. {
  577. "Base/Grid/Config",
  578. "Base/Grid/Exit",
  579. "Base/Grid/Info",
  580. "Base/Grid/Ss",
  581. "Base/Grid/SsUi",
  582. "Base/Grid/ToTitle",
  583. "Base/Grid/Shop",
  584. "BaseVR/Grid/VRCommHome",
  585. "BaseVR/Grid/VRHelp",
  586. "Base/Grid/Help",
  587. "Base/VR Avatar",
  588. "Base/Grid/Dic"
  589. };
  590. private UIPanel m_uiPanel;
  591. private BoxCollider m_hitArea;
  592. private GameObject m_goBase;
  593. private UISprite m_uiBase;
  594. private GameObject m_goBaseVR;
  595. private UISprite m_uiBaseVR;
  596. private GameObject m_goGear;
  597. private UIButton m_uiGear;
  598. private GameObject[] m_goBtn = new GameObject[12];
  599. private UIButton[] m_uiBtn = new UIButton[12];
  600. private Camera m_uiCam;
  601. private UISprite m_spriteExplanation;
  602. private UILabel m_labelExplanation;
  603. private bool m_bEnablePanel;
  604. private bool m_bEnableBase;
  605. private Dictionary<SystemShortcut.BGSizeType, int> dicBGSizeType = new Dictionary<SystemShortcut.BGSizeType, int>();
  606. private EventDelegate[] m_aryDgOnClick = new EventDelegate[12];
  607. private bool m_bAlways = true;
  608. private CMSystem m_sys;
  609. private string m_strSceneHelpName = string.Empty;
  610. private enum Btn
  611. {
  612. Config,
  613. Exit,
  614. Info,
  615. Ss,
  616. SsUi,
  617. ToTitle,
  618. Shop,
  619. VRCommHome,
  620. VRHelp,
  621. Help,
  622. VRAvatar,
  623. Dic,
  624. Max
  625. }
  626. private enum BGSizeType
  627. {
  628. Long,
  629. Short
  630. }
  631. }