WfScreenMoveChildren.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. public class WfScreenMoveChildren : 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. protected override void FadeIn()
  36. {
  37. base.FadeIn();
  38. if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
  39. {
  40. this.Finish();
  41. }
  42. }
  43. public bool IsExistNextLabel()
  44. {
  45. return !string.IsNullOrEmpty(this.next_label_);
  46. }
  47. public string next_label
  48. {
  49. get
  50. {
  51. return this.next_label_;
  52. }
  53. }
  54. private string next_label_ = string.Empty;
  55. }