public void findLobbyScripts() { if (!ua) { ua = FindObjectOfType <UsernameActions>(); lf = FindObjectOfType <LobbyFunctions>(); } }
void loadGame(SocketIOEvent evt) { Debug.Log("The game has been started!"); ua = null; lf = null; UnityEngine.SceneManagement.SceneManager.LoadScene(1); }
private void Awake() { inst = this; // not the first time here if (GameManager.instance) { loadMainUserList(); } }