private void Awake() { timerText.enabled = false; flowchart = FindObjectOfType <Flowchart>(); while (playerReference == null) { playerReference = FindObjectOfType <PlayerController_Alex>(); } while (pauseMenuReference == null) { pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); } while (uiControllerReference == null) { uiControllerReference = FindObjectOfType <UIController_Khoa>(); } foreach (GameObject tempGameObjects in taskRelatedGameObjects) { tempGameObjects.SetActive(false); tempGameObjects.transform.SetParent(this.transform, true); } objectsNumber = taskRelatedGameObjects.Length; }
private void Awake() { while (pauseMenuReference == null) { pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); } foreach (GameObject tempGameObjects in taskRelatedGameObjects) { tempGameObjects.SetActive(false); } }
private void Awake() { playerReference = FindObjectOfType <PlayerController_Alex>(); pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); nameText.text = charaName; DeactivateDialogue(); DeactivateYesNoPanel(); AssignTaskObjectParent(); TurnOffTaskObjects(); }
private void Awake() { while (pauseMenuReference == null) { pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); } foreach (GameObject tempGameObjects in receivedElement) { tempGameObjects.SetActive(false); tempGameObjects.transform.SetParent(this.transform, true); } totalNumberOfQuestObjects = receivedElement.Length; }
private bool hasPlayer, finishedTask, hasTalked; // is the player in a collider? yes or no private void Awake() { hasTalked = false; timerText.enabled = false; questType = flowchart.GetIntegerVariable("questType"); playerReference = FindObjectOfType <PlayerController_Alex>(); pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); uiControllerReference = FindObjectOfType <UIController_Khoa>(); foreach (GameObject tempGameObjects in taskRelatedGameObjects) { tempGameObjects.SetActive(false); tempGameObjects.transform.SetParent(this.transform, true); } objectsNumber = taskRelatedGameObjects.Length; }