public void SetConnectState(PlayerConnectState state) { for (int i = 0; i < NumPlayers; i++) { players[i].state = state; } }
public void SetConnectState(PlayerConnectState state) { for (int i = 0; i < players.Length; i++) { players[i].state = state; } }
public void SetConnectState(int playerHandle, PlayerConnectState state) { for (int i = 0; i < NumPlayers; i++) { if (players[i].playerHandle == playerHandle) { players[i].connectProgress = 0; players[i].state = state; break; } } }
public void SetConnectState(int handle, PlayerConnectState state) { for (int i = 0; i < players.Length; i++) { if (players[i].handle == handle) { players[i].connect_progress = 0; players[i].state = state; break; } } }
public void SetPlayerConnectState(PlayerConnectState newState) { MainMenuUIManager.SetPlayerConnectState(newState); }