practice mode

This commit is contained in:
2026-07-02 11:41:57 +05:30
parent 2651068b50
commit 2de5a166f6
14 changed files with 3009 additions and 890 deletions
+6 -2
View File
@@ -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)){