public void RaiseEvent() { if (OnAnimationEnded != null) { OnAnimationEnded.Invoke(); } else { Debug.LogWarning("Animation Ended event was raised, but nobody picked it up." + "Check why there is no Protagonist already present, " + "and make sure it's listening on this Charcater Animation channel."); } }
public void AnimationEnded() { OnAnimationEnded?.Invoke(); Destroy(gameObject); }
public void IgniteOnAnimationEnded() { OnAnimationEnded?.Invoke(); }