12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- using System;
- public class WfScreenMoveChildren : WfScreenChildren
- {
- public override void Awake()
- {
- base.Awake();
- base.SetFadeTime(0f);
- }
- public void SetNextLabel(string label)
- {
- this.next_label_ = label;
- }
- protected override void OnCall()
- {
- }
- public override void Update()
- {
- base.Update();
- if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
- {
- this.Finish();
- }
- }
- protected override void OnFinish()
- {
- base.OnFinish();
- if (!string.IsNullOrEmpty(this.next_label_))
- {
- string label_name = this.next_label_;
- this.next_label_ = string.Empty;
- GameMain.Instance.ScriptMgr.adv_kag.JumpLabel(label_name);
- GameMain.Instance.ScriptMgr.adv_kag.Exec();
- }
- }
- protected override void FadeIn()
- {
- base.FadeIn();
- if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
- {
- this.Finish();
- }
- }
- public bool IsExistNextLabel()
- {
- return !string.IsNullOrEmpty(this.next_label_);
- }
- public string next_label
- {
- get
- {
- return this.next_label_;
- }
- }
- private string next_label_ = string.Empty;
- }
|