Example #1
0
        void Awake()
        {
            if (Instance != null)
            {
                Debug.Log("PauseUI is already in play. Deleting old Instantiating new.");
                Destroy(gameObject);
            }
            else
                Instance = this;

            Time.timeScale = 1;
            PauseMenu.enabled = false;
            MainMenu.enabled = false;
            OptionsMenu.enabled = false;

            Cursor.visible = false;
            Cursor.lockState = CursorLockMode.Locked;
            //OptionsMenu.enabled = false;
        }
Example #2
0
        void Awake()
        {
            if (Instance != null)
            {
                Debug.Log("PauseUI is already in play. Deleting old Instantiating new.");
                Destroy(gameObject);
            }
            else
            {
                Instance = this;
            }

            Time.timeScale      = 1;
            PauseMenu.enabled   = false;
            MainMenu.enabled    = false;
            OptionsMenu.enabled = false;

            Cursor.visible   = false;
            Cursor.lockState = CursorLockMode.Locked;
            //OptionsMenu.enabled = false;
        }