Exemplo n.º 1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (_instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
 }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 3
0
 protected void Application_AuthenticateRequest(object sender, EventArgs e)
 {
     LogonManager.SetLoggedUserInfo(new HttpContextWrapper(Context));
 }