DanceSelectManager.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. public class DanceSelectManager : 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"] == "SceneDanceSelect")
  20. {
  21. NDebug.Assert(this.adv_kag_.tag_backup.ContainsKey("label"), "SceneDanceSelectにlabelの設定がされていませんでした");
  22. this.move_screen_.SetNextLabel(this.adv_kag_.tag_backup["label"]);
  23. DanceMain.RecetJumpLabel = this.move_screen_.next_label;
  24. if (this.adv_kag_.tag_backup.ContainsKey("cancel_label"))
  25. {
  26. DanceSelect component = base.children_dic["Main"].GetComponent<DanceSelect>();
  27. component.SetCancelLabel(this.adv_kag_.tag_backup["cancel_label"]);
  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. private WfScreenMoveChildren move_screen_;
  54. private ADVKagManager adv_kag_;
  55. }