YotogiNullManager.cs 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. public class YotogiNullManager : WfScreenChildren
  3. {
  4. public override void Awake()
  5. {
  6. base.Awake();
  7. base.SetFadeTime(0f);
  8. }
  9. public void SetNextLabel(string label)
  10. {
  11. this.next_label_ = label;
  12. }
  13. protected override void OnCall()
  14. {
  15. }
  16. public override void Update()
  17. {
  18. base.Update();
  19. if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
  20. {
  21. this.Finish();
  22. }
  23. }
  24. protected override void OnFinish()
  25. {
  26. base.OnFinish();
  27. if (!string.IsNullOrEmpty(this.next_label_))
  28. {
  29. string label_name = this.next_label_;
  30. this.next_label_ = string.Empty;
  31. GameMain.Instance.ScriptMgr.adv_kag.JumpLabel(label_name);
  32. GameMain.Instance.ScriptMgr.adv_kag.Exec();
  33. }
  34. }
  35. public bool IsExistNextLabel()
  36. {
  37. return !string.IsNullOrEmpty(this.next_label_);
  38. }
  39. public string nextLabel
  40. {
  41. get
  42. {
  43. return this.next_label_;
  44. }
  45. }
  46. private string next_label_ = string.Empty;
  47. }