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