NPCEdit.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. namespace SceneNPCEdit
  4. {
  5. public class NPCEdit : WfScreenManager
  6. {
  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. this.move_screen_ = base.children_dic["Move"].GetComponent<WfScreenMoveChildren>();
  15. string edit_label = string.Empty;
  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"] == "SceneNPCEdit")
  19. {
  20. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("label"), "SceneCallにlabelの設定がされていませんでした");
  21. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("edit_label"), "SceneCallにedit_labelの設定がされていませんでした");
  22. edit_label = this.adv_kag_.tag_backup["edit_label"];
  23. this.move_screen_.SetNextLabel(this.adv_kag_.tag_backup["label"]);
  24. }
  25. NPCEditMain component = base.children_dic["Main"].GetComponent<NPCEditMain>();
  26. component.SetScreenManager(this, edit_label, empty, empty2);
  27. this.CallScreen("Main");
  28. }
  29. protected override void SettingChildrenList(Dictionary<string, WfScreenChildren> children_dic)
  30. {
  31. string[] array = new string[]
  32. {
  33. "Main",
  34. "Move"
  35. };
  36. for (int i = 0; i < array.Length; i++)
  37. {
  38. children_dic.Add(array[i], UTY.GetChildObject(base.gameObject, array[i], false).GetComponent<WfScreenChildren>());
  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. }
  51. }