public void Die(Action onDieAnimationComplete)
 {
     //Debug.LogFormat("Die");
     m_StandardAnimator.Play(string.Empty, "die", string.Empty, () => {
         m_StandardAnimator.Clear();
         onDieAnimationComplete?.Invoke();
     });
 }
Ejemplo n.º 2
0
 public void Die(bool hasGun, Action onDieAnimationComplete = null)
 {
     Debug.LogFormat("Enemy Die");
     m_StandardAnimator.Play(string.Empty, hasGun ? "death_gun" : "death_nogun", string.Empty, () =>
     {
         m_StandardAnimator.Clear();
         onDieAnimationComplete?.Invoke();
     });
 }