void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(gameObject); } else if (_instance != this) { Destroy(this.gameObject); return; } }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); _logonWindow = GameObject.Find("UserDetailsInfo").GetComponent <LogonManager>(); }
protected void Application_AuthenticateRequest(object sender, EventArgs e) { LogonManager.SetLoggedUserInfo(new HttpContextWrapper(Context)); }