Ejemplo n.º 1
0
 public void gameOver()
 {
     gameOverDisconnection = true;
     localPlayer.GetComponent <Kirby_actor>().isParalyzed = true;
     // NetworkManager.singleton.StopClient();
     // if(localPlayer.isServer) NetworkManager.singleton.StopHost();
     // NetworkManager.singleton.StopMatchMaker();
     NetworkManager.Shutdown();
     localPlayer = null;
     StartCoroutine(setGameOverPanel());
 }