void Start() { s_Singleton = this; _lobbyHooks = GetComponent <UnityStandardAssets.Network.LobbyHook> (); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas> ().enabled = true; DontDestroyOnLoad(gameObject); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent<UnityStandardAssets.Network.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent<Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }