void Update() { if (countDown > 0) { countDown -= Time.deltaTime; if (countDown <= 0) { CmdEndGame(); } } else if (endgameCountDown > 0) { endgameCountDown -= Time.deltaTime; if (endgameCountDown <= 0) { endgameCountDown = -1; if (networkedPScript == null) { SetNPS(); } networkedPScript.CmdReplayGame(); } } }