Пример #1
0
 protected void Update()
 {
     if (health <= 0.0f && !ifKill)
     {
         Kill();
         manager.SendMessage("BossDestroyAction");
     }
 }
Пример #2
0
 protected void Update()
 {
     distanceToPlayer = (player.transform.position - transform.position).magnitude;
     if (ifMove)
     {
         Move();
     }
     rotate();
     if (health <= 0.0f && !ifKill)
     {
         Kill();
         manager.SendMessage("BossDestroyAction");
     }
 }