private void Awake() { playerController = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControllerTwo>(); playerStats = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerStatScript>(); ThisAudioSource = GetComponent <AudioSource>(); PlayerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); }
void Awake() { MainCamera.SetActive(true); QuestAudioSource = transform.GetChild(0).GetComponent <AudioSource>(); PlayerTransform = transform.parent.GetComponent <Transform> (); playerController = PlayerTransform.GetComponent <PlayerControllerTwo> (); interactionScript = GetComponent <InteractionScript>(); Headline.text = QuestTrackingHEADLINE[CurrentQuest]; Description.text = QuestTrackingTEXT[CurrentQuest]; Description.color = Color.red; QuestTrackingAnimator.SetTrigger("swishIn"); }
void Start() { cont = GetComponent <PlayerControllerTwo>(); }
// Use this for initialization void Start() { player = GetComponentInParent <PlayerControllerTwo>(); }