YotogiNullManager.cs 842 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. private string next_label_ = string.Empty;
  40. }