Exemple #1
0
 public void Lose()
 {
     Cursor.lockState = CursorLockMode.None;
     Cursor.visible   = true;
     print("Lose");
     Time.timeScale = 0;
     playercamera.GetComponent <PlayerLook>().enabled = false;
     LoseMenu.SetActive(true);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 private void ShowLosePanel1()
 {
     LoseMenu.SetActive(true);
     Time.timeScale = 0;
 }