SceneTrophyManager.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using wf;
  4. public class SceneTrophyManager : WfScreenManager
  5. {
  6. public void Awake()
  7. {
  8. this.adv_kag_ = GameMain.Instance.ScriptMgr.adv_kag;
  9. }
  10. public override void Start()
  11. {
  12. base.Start();
  13. GameUtility.ResetCameraZero();
  14. this.move_screen_ = base.children_dic["Move"].GetComponent<WfScreenMoveChildren>();
  15. string empty = string.Empty;
  16. string empty2 = string.Empty;
  17. if (this.adv_kag_.tag_backup != null && 0 < this.adv_kag_.tag_backup.Count && this.adv_kag_.tag_backup["name"] == "SceneTrophy")
  18. {
  19. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("label"), "SceneCallにlabelの設定がされていませんでした");
  20. this.move_screen_.SetNextLabel(this.adv_kag_.tag_backup["label"]);
  21. }
  22. GameInShopMain component = base.children_dic["Main"].GetComponent<GameInShopMain>();
  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 WfScreenMoveChildren move_screen
  40. {
  41. get
  42. {
  43. return this.move_screen_;
  44. }
  45. }
  46. private WfScreenMoveChildren move_screen_;
  47. private ADVKagManager adv_kag_;
  48. }