Exemple #1
0
 void DestroyTheMonster()
 {
     if (!IsHeadsOk() || m_State == MonsterState.Destroyed)
     {
         return;
     }
     Debug.Log("DestroyTheMonster");
     m_LvlController.GameOver();
     m_LeftHeadContr.MonsterIsDestroying();
     m_RightHeadContr.MonsterIsDestroying();
     SetTarget(-10.0f);
     m_State = MonsterState.Destroyed;
 }