public void Damage(float dmg) { health -= dmg; if (health <= 0) { dead = true; enemyMovementController.StopME(); Invoke(MyConst.Cooldown, 1); } }