DeskCustomize.cs 1.3 KB

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