示例#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");
     }
 }