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; }
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; }