Пример #1
0
 void EndRound()
 {
     //Cursor.visible = true;
     //UnityStandardAssets.Characters.FirstPerson.FirstPersonController firstPersController = GameObject.FindObjectOfType<UnityStandardAssets.Characters.FirstPerson.FirstPersonController>();
     currTime = 0;
     firstPersonController.DisableFPSMouse();
     if (OnEndRound != null)
     {
         OnEndRound();
     }
     Debug.Log("roundEnd");
     if (GhostManager.totalIntruders > 0)
     {
         if (OnLostRound != null)
         {
             OnLostRound();
         }
         Debug.Log("yahlost");
     }
     else
     {
         if (OnEndRound != null)
         {
             OnEndRound();
         }
         Debug.Log("you wonnn");
     }
 }