void PauseGame() { ball.Pause(); planTimeText.enabled = true; turnHandler1.PauseGame(); turnHandler2.PauseGame(); paused = true; }
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"); } }