public void ClosePopGraph() { popGraphOpen = false; NonOverlayCamera.Disable(); // GameManager.HumanPlayer.userInput.enabled = true; // maincam.gameObject.SetActive (true); // GameManager.Hud.gameObject.SetActive (true); // popcam.gameObject.SetActive (false); }
public void StartExperiment(Lab newSelectedLab) { selectedLab = newSelectedLab; NonOverlayCamera.Enable(panelID); while (activePuzzleIndex == lastActivePuzzleIndex) { activePuzzleIndex = Random.Range(0, expPuzzles.Length); } InitiateExperiment(); }
public void OpenPopGraph() { NonOverlayCamera.Enable(PanelButtonType.PopulationsButton); popGraphOpen = true; // GameManager.HumanPlayer.userInput.Deselect (); // GameManager.HumanPlayer.userInput.enabled = false; // GameManager.Hud.gameObject.SetActive (false); // maincam.gameObject.SetActive (false); // popcam.gameObject.SetActive (true); if (popPanel.showingStats) { popPanel.StartCheckStats(); } }
public void CancelPuzzle() { if (!cancelSelected) { cancelSelected = true; cancelButton.image.color = cancelButton.colors.highlightedColor; StartCoroutine(CancelCountDown()); } else if (GameManager.inPuzzleScene) { gameObject.SetActive(false); gameObject.SetActive(true); } else { NonOverlayCamera.Disable(); } }
private IEnumerator EndPuzzleCoroutine() { yield return(new WaitForSeconds(endPuzzleWaitTime)); NonOverlayCamera.Disable(); }