public void Lose() { Cursor.lockState = CursorLockMode.None; Cursor.visible = true; print("Lose"); Time.timeScale = 0; playercamera.GetComponent <PlayerLook>().enabled = false; LoseMenu.SetActive(true); }
private void resetPanelosition() { cameraMenu.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; cameraOptions.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; cameraGame.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; pauseMenu.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; WinMenu.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; LoseMenu.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; pauseMenu.SetActive(false); WinMenu.SetActive(false); LoseMenu.SetActive(false); }
private void ShowLosePanel1() { LoseMenu.SetActive(true); Time.timeScale = 0; }