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.");
     }
 }
Ejemplo n.º 2
0
Archivo: PreSpawn.cs Proyecto: mz000/QQ
 public void AnimationEnded()
 {
     OnAnimationEnded?.Invoke();
     Destroy(gameObject);
 }
Ejemplo n.º 3
0
 public void IgniteOnAnimationEnded()
 {
     OnAnimationEnded?.Invoke();
 }