Debug_mgr.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using System;
  2. using com.workman.cm3d2.scene.dailyEtc;
  3. using Schedule;
  4. using UnityEngine;
  5. public class Debug_mgr : MonoBehaviour
  6. {
  7. private void Start()
  8. {
  9. GameObject f_goParent = GameObject.Find("/UI Root");
  10. this.mgr = UTY.GetChildObject(f_goParent, "Manager", false).GetComponent<SceneMgr>();
  11. }
  12. public void OpenDaytimePanel()
  13. {
  14. ScheduleAPI.DayStartManage();
  15. int[] facilityPowerUpMaterialIDArray = FacilityDataTable.GetFacilityPowerUpMaterialIDArray();
  16. foreach (int materialID in facilityPowerUpMaterialIDArray)
  17. {
  18. GameMain.Instance.FacilityMgr.SetHavePowerUpMaterial(materialID, true);
  19. }
  20. this.mgr.GetManager<DailyMgr>().OpenDaytimePanel();
  21. }
  22. public void OpenNightPanel()
  23. {
  24. this.mgr.GetManager<DailyMgr>().OpenNightPanel();
  25. }
  26. public void CloseDailyPanel()
  27. {
  28. this.mgr.GetManager<DailyMgr>().CloseDailyPanel();
  29. }
  30. public void OpenResultDaytimePanel()
  31. {
  32. this.mgr.GetManager<ResultWorkMgr>().OpenResultDaytimePanel();
  33. }
  34. public void OpenResultNightPanel()
  35. {
  36. this.mgr.GetManager<ResultWorkMgr>().OpenResultNightPanel();
  37. }
  38. public void OpenResultIncomePanel()
  39. {
  40. this.mgr.GetManager<ResultIncomeMgr>().OpenResultIncomePanel();
  41. }
  42. public void OpenStatusPanel()
  43. {
  44. }
  45. public void OpenUserEditPanel()
  46. {
  47. this.mgr.GetManager<UserEditMgr>().OpenUserEditPanel();
  48. }
  49. public void OpenStartDailyPanel()
  50. {
  51. this.mgr.GetManager<StartDailyMgr>().OpenStartDailyPanel();
  52. }
  53. public void OpenMaidExaminationPanel()
  54. {
  55. this.mgr.GetManager<MaidExaminationMgr>().OpenMaidExaminationPanel(null, null, null);
  56. }
  57. public void CloseMaidExaminationPanel()
  58. {
  59. this.mgr.GetManager<MaidExaminationMgr>().CloseMaidExaminationPanel();
  60. }
  61. public void OpenStaffRollPanel()
  62. {
  63. this.mgr.GetManager<StaffRollMgr>().OpenStaffRollPanel();
  64. }
  65. public void OpenStatusPanelForChuBLip()
  66. {
  67. }
  68. public void UpdateStatusPanelForChuBLip()
  69. {
  70. }
  71. public void OpenProfilePanelForChuBLip()
  72. {
  73. }
  74. public void CloseProfilePanelForChuBLip()
  75. {
  76. }
  77. private const string uiRootPath = "/UI Root";
  78. private SceneMgr mgr;
  79. }