void gameOverEvent()
 {
     gameJudge = -1;
     actionManager.DestroyAll();
     for (int i = 0; i < patrols.Count; i++)
     {
         if (patrols[i].transform.position.y != 0)
         {
             patrols[i].transform.position = new Vector3(patrols[i].transform.position.x, 0, patrols[i].transform.position.z);
         }
         patrols[i].GetComponent <Animator>().SetBool("run", false);
     }
     timer.End();
     player.GetComponent <Rigidbody>().velocity = Vector3.zero;
 }
Пример #2
0
 void GameOver()
 {
     actionManager.DestroyAll();
 }