예제 #1
0
 public void CmdRestartGame()
 {
     GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
     players[0].GetComponent <Health>().RpcRestartGame();
     players[1].GetComponent <Health>().RpcRestartGame();
     textToShow = "FIND THE FLAG\nBRING IT BACK TO YOUR BASE";
     fm.CmdRespawnFlag();
     someoneHasFlag = false;
 }