void OnGUI() { if (!GameNetworkManager.Instance.isNetworkActive) { //Display help GUI.Box(new Rect(Screen.width / 2 - 150, 80, 300, 60), instructionsOffline); } else { RemotePlayer player = PlayerManager.Instance.GetLocalPlayer(); if (!player.isServer && player.GetCharacterObject() == null) { if (GUI.Button(new Rect(10, 120, 200, 20), "Spawn")) { player.CmdSpawnPlayer(); } GUI.Box(new Rect(Screen.width / 2 - 150, 70, 300, 40), instructionsSpawn); } if (player.isServer) { GUI.Box(new Rect(Screen.width / 2 - 150, 120, 300, 40), instructionsOnServer); } else { GUI.Box(new Rect(Screen.width / 2 - 150, 120, 300, 80), instructionsOnMovingClient + instructionsOnOtherClient); } } }