public virtual void Awake() { if (instance != null) { Debug.Log("Only one LobbyGUI can exist at a time."); Destroy(this); } else { instance = this; } }
private void Awake() { Instance = this; }
void PlayerDisconnected(NetworkPlayer player){ if (GameObject.Find("LobbyGUI") != null) { lobbyGUIscript = GameObject.Find("LobbyGUI").GetComponent<LobbyGUI>(); lobbyGUIscript.RemoveReadyLight(player); } psInfo.RemovePlayer(player); --playerCounter; }