protected void Update() { if (health <= 0.0f && !ifKill) { Kill(); manager.SendMessage("BossDestroyAction"); } }
protected void Update() { distanceToPlayer = (player.transform.position - transform.position).magnitude; if (ifMove) { Move(); } rotate(); if (health <= 0.0f && !ifKill) { Kill(); manager.SendMessage("BossDestroyAction"); } }