private void Awake() { while (playerReference == null) { playerReference = FindObjectOfType <PlayerController_Alex>(); } }
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 (playerReference == null) { playerReference = FindObjectOfType <PlayerController_Alex>(); } pickUpRigidbody = GetComponent <Rigidbody>(); changeMaterial = GetComponent <MeshRenderer>(); }
private void Awake() { playerReference = FindObjectOfType <PlayerController_Alex>(); pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>(); nameText.text = charaName; DeactivateDialogue(); DeactivateYesNoPanel(); AssignTaskObjectParent(); TurnOffTaskObjects(); }
private void Awake() { while (playerReference == null) { playerReference = FindObjectOfType <PlayerController_Alex>(); } while (uiReference == null) { uiReference = FindObjectOfType <UIController_Khoa>(); } absorbSound = GetComponent <AudioSource>(); stayInside = false; doOnce = false; }
private void Awake() { foreach (Image image in element) { image.fillAmount = 0; image.enabled = true; } foreach (Text text in elementalText) { text.enabled = false; } while (playerControllerReference == null) { playerControllerReference = FindObjectOfType <PlayerController_Alex>(); } }
private void Awake() { while (playerReference == null) { playerReference = FindObjectOfType <PlayerController_Alex>(); } while (soundControllerReference == null) { soundControllerReference = FindObjectOfType <SoundVolumeUpdate_Khoa>(); } onGoingList = new List <int>(); completedList = new List <int>(); TurnOffPauseMenu(); }
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; }
private bool hasTalked; // is the player in a collider? yes or no private void Awake() { hasTalked = false; CanMoveReference = FindObjectOfType <PlayerController_Alex>(); }
private void Awake() { playerReference = FindObjectOfType <PlayerController_Alex>(); canStart = false; }