コード例 #1
0
 void PauseGame()
 {
     ball.Pause();
     planTimeText.enabled = true;
     turnHandler1.PauseGame();
     turnHandler2.PauseGame();
     paused = true;
 }
コード例 #2
0
 void PauseGame()
 {
     if (paused == true)
     {
         return;
     }
     playerTurnhandler.Activate(true);
     planTimeText.color     = activePlanTimeColor;
     planCountDownCoroutine = StartCoroutine(CountDownPlanningTime());
     paused = true;
     playerTurnhandler.PauseGame();
     otherTurnhandler.PauseGame();
     ball.Pause();
     if (customIsServer)
     {
         List <GameObject> allRobots = new List <GameObject>();
         allRobots.AddRange(playerTurnhandler.Robots);
         allRobots.AddRange(otherTurnhandler.Robots);
         server.SendSyncStateMsg(allRobots, ball.gameObject);
         Debug.Log("sending sycnstate msg");
     }
 }