void Start()
        {
            s_Singleton  = this;
            _lobbyHooks  = GetComponent <UnityStandardAssets.Network.LobbyHook> ();
            currentPanel = mainMenuPanel;

            backButton.gameObject.SetActive(false);
            GetComponent <Canvas> ().enabled = true;

            DontDestroyOnLoad(gameObject);
        }
Пример #2
0
        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");
        }