Exemplo n.º 1
0
        void Start()
        {
            s_Singleton  = this;
            currentPanel = mainMenuPanel;

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

            DontDestroyOnLoad(gameObject);

            SetServerInfo("Offline", "None");

            Debug.Log("Lobby Scene: " + lobbyScene.SimpleSceneName);
            Debug.Log("Game Scene: " + gameScene.SimpleSceneName);
        }
Exemplo n.º 2
0
        public new void OnEnable()
        {
            base.OnEnable();

            if (Instance == null)
            {
                Instance = this;
            }
            else if (Instance != this)
            {
                Destroy(gameObject);
            }

            DontDestroyOnLoad(gameObject);
        }
Exemplo n.º 3
0
        void Start()
        {
            DisconnectAll();

            s_Singleton  = this;
            currentPanel = mainMenuPanel;

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

            //DontDestroyOnLoad(gameObject);

            SetServerInfo("Offline", "None");

            Debug.Log("Lobby Scene: " + lobbyScene.SimpleSceneName);
            Debug.Log("Game Scene: " + gameScene.SimpleSceneName);

            Cursor.lockState = CursorLockMode.None;
            Cursor.visible   = true;
        }