practice mode
This commit is contained in:
@@ -489,7 +489,7 @@ public class GameManager : NetworkBehaviour
|
||||
SwitchTeams();
|
||||
}
|
||||
|
||||
void SwitchTeams(){
|
||||
public void SwitchTeams(){
|
||||
if(!isServer){
|
||||
Debug.LogWarning("SwitchTeams called on client, skipping");
|
||||
return;
|
||||
@@ -555,7 +555,11 @@ public class GameManager : NetworkBehaviour
|
||||
HandleTurnTimer();
|
||||
|
||||
if(!gameStarted){
|
||||
|
||||
if(GameTutorialManager.tutorialModeEnabled){
|
||||
gameStarted = true;
|
||||
GameCanvas.instance.HideWaitingForOpponentPanel();
|
||||
Logger.Log("Game started On localhost, tutorial mode enabled");
|
||||
}
|
||||
NetPlayer[] players = FindObjectsOfType<NetPlayer>();
|
||||
#if UNITY_EDITOR
|
||||
if(Input.GetKeyDown(KeyCode.Space)){
|
||||
|
||||
Reference in New Issue
Block a user