GameInShop.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. public class GameInShop : 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"] == "SceneShop")
  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. if (this.adv_kag_.tag_backup.ContainsKey("bg_id"))
  20. {
  21. this.select_bg_id = int.Parse(this.adv_kag_.tag_backup["bg_id"]);
  22. }
  23. else
  24. {
  25. this.select_bg_id = 0;
  26. }
  27. }
  28. GameInShopMain component = base.children_dic["Main"].GetComponent<GameInShopMain>();
  29. this.CallScreen("Main");
  30. }
  31. protected override void SettingChildrenList(Dictionary<string, WfScreenChildren> children_dic)
  32. {
  33. string[] array = new string[]
  34. {
  35. "Main",
  36. "Move"
  37. };
  38. for (int i = 0; i < array.Length; i++)
  39. {
  40. WfScreenChildren component = UTY.GetChildObject(base.gameObject, array[i], false).GetComponent<WfScreenChildren>();
  41. component.parent_mgr = this;
  42. children_dic.Add(array[i], component);
  43. }
  44. }
  45. public WfScreenMoveChildren move_screen
  46. {
  47. get
  48. {
  49. return this.move_screen_;
  50. }
  51. }
  52. public int select_bg_id { get; private set; }
  53. private WfScreenMoveChildren move_screen_;
  54. private ADVKagManager adv_kag_;
  55. }