public void Die() { m_View.AnimateDeath(); Game.Player.EnemyDied(this); m_MovementAgent.Die(); m_View.Die(); }
private void Die() { if (m_IsDead) { return; } Debug.Log("Die"); m_IsDead = true; m_View.AnimateDeath(); Game.Player.EnemyDied(this); }
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"); }