예제 #1
0
파일: GameManager.cs 프로젝트: chaitae/Ten
 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");
     }
 }