Example #1
0
 public override void ExecuteByUpdate()
 {
     if (PlayerVariables.IsHurt)
     {
         Hurt();
         PlayerVariables.IsHurt = false;
         // 延时调用
         DelayInvoke.StartCoroutine(TransitionTrigger());
     }
 }
Example #2
0
 public override void Enter()
 {
     _audioSource.Stop();
     // 重新加载当前场景
     DelayInvoke.StartCoroutine(ReloadCurrentScene());
 }
Example #3
0
 public override void ExecuteByUpdate()
 {
     DelayInvoke.StartCoroutine(TransitionTrigger());
 }