Exemplo n.º 1
0
 public void Die()
 {
     m_View.AnimateDeath();
     Game.Player.EnemyDied(this);
     m_MovementAgent.Die();
     m_View.Die();
 }
Exemplo n.º 2
0
        private void Die()
        {
            if (m_IsDead)
            {
                return;
            }
            Debug.Log("Die");
            m_IsDead = true;
            m_View.AnimateDeath();

            Game.Player.EnemyDied(this);
        }
Exemplo n.º 3
0
 private void Die()
 {
     if (m_IsDead == true)
     {
         return;
     }
     m_IsDead = true;
     Debug.Log("Death func launched");
     Game.Player.EnemyDied(this);
     m_View.MovementAgent.Die();
     m_View.AnimateDeath();
     GameObject.Destroy(m_View.gameObject, 10f);
     Debug.Log("Die");
 }