SceneUserEditManager.cs 1.5 KB

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