SceneGP003MainMenuScreenManager.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. namespace PrivateMaidMode
  4. {
  5. public class SceneGP003MainMenuScreenManager : WfScreenManager
  6. {
  7. public void Awake()
  8. {
  9. this.m_advKag = GameMain.Instance.ScriptMgr.adv_kag;
  10. }
  11. public override void Start()
  12. {
  13. base.Start();
  14. this.m_moveScreen = base.children_dic["Move"].GetComponent<PrivateCharaSelectMove>();
  15. if (this.m_advKag.tag_backup != null && this.m_advKag.tag_backup.Count > 0 && this.m_advKag.tag_backup["name"] == "SceneGP003MainMenu")
  16. {
  17. NDebug.Assert(this.m_advKag.tag_backup.ContainsKey("label"), "SceneCallにlabelの設定がされていませんでした");
  18. this.m_moveScreen.SetNextLabel(this.m_advKag.tag_backup["label"]);
  19. this.m_moveScreen.SetBackupFile(this.m_advKag.kag.GetCurrentFileName());
  20. }
  21. GP003MainMenuManager component = base.children_dic["Main"].GetComponent<GP003MainMenuManager>();
  22. component.screenManager = this;
  23. this.CallScreen("Main");
  24. }
  25. protected override void SettingChildrenList(Dictionary<string, WfScreenChildren> children_dic)
  26. {
  27. string[] array = new string[]
  28. {
  29. "Main",
  30. "Move"
  31. };
  32. for (int i = 0; i < array.Length; i++)
  33. {
  34. WfScreenChildren component = UTY.GetChildObject(base.gameObject, array[i], false).GetComponent<WfScreenChildren>();
  35. component.parent_mgr = this;
  36. children_dic.Add(array[i], component);
  37. }
  38. }
  39. public PrivateCharaSelectMove MoveScreen
  40. {
  41. get
  42. {
  43. return this.m_moveScreen;
  44. }
  45. }
  46. private PrivateCharaSelectMove m_moveScreen;
  47. private ADVKagManager m_advKag;
  48. }
  49. }