PhotoMode.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System;
  2. using System.Collections.Generic;
  3. public class PhotoMode : 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. GameMain.Instance.MainLight.Reset();
  13. GameMain.Instance.CharacterMgr.ResetCharaPosAll();
  14. GameMain.Instance.MainCamera.Reset(CameraMain.CameraType.Target, true);
  15. GameMain.Instance.SoundMgr.VoiceStopAll();
  16. this.move_screen_ = base.children_dic["Move"].GetComponent<WfScreenMoveChildren>();
  17. string empty = string.Empty;
  18. string empty2 = string.Empty;
  19. if (this.adv_kag_.tag_backup != null && 0 < this.adv_kag_.tag_backup.Count && this.adv_kag_.tag_backup["name"] == "ScenePhotoMode")
  20. {
  21. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("label"), "[PhotoMode]SceneCallにlabelの設定がされていませんでした");
  22. this.move_screen_.SetNextLabel(this.adv_kag_.tag_backup["label"]);
  23. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("edit_label"), "[PhotoMode]SceneCallにedit_labelの設定がされていませんでした");
  24. this.edit_label_name = this.adv_kag_.tag_backup["edit_label"];
  25. if (!this.adv_kag_.tag_backup.ContainsKey("comeback"))
  26. {
  27. PhotoModeMain.ResetComebackData();
  28. }
  29. }
  30. this.CallScreen("Main");
  31. }
  32. protected override void SettingChildrenList(Dictionary<string, WfScreenChildren> children_dic)
  33. {
  34. string[] array = new string[]
  35. {
  36. "Main",
  37. "Move"
  38. };
  39. for (int i = 0; i < array.Length; i++)
  40. {
  41. WfScreenChildren component = UTY.GetChildObject(base.gameObject, array[i], false).GetComponent<WfScreenChildren>();
  42. component.parent_mgr = this;
  43. children_dic.Add(array[i], component);
  44. }
  45. }
  46. public WfScreenMoveChildren move_screen
  47. {
  48. get
  49. {
  50. return this.move_screen_;
  51. }
  52. }
  53. public string edit_label_name { get; private set; }
  54. private WfScreenMoveChildren move_screen_;
  55. private ADVKagManager adv_kag_;
  56. }