// Use this for initialization void Awake() { player = GameObject.FindGameObjectWithTag("Player"); portal = player.GetComponent <TrackPortals>(); pickupAudio = GetComponent <AudioSource>(); boxCollider = GetComponent <BoxCollider>(); anim = GetComponent <Animator>(); }
// Use this for initialization void Awake() { //anim = GetComponent<Animator>(); player = GameObject.FindGameObjectWithTag("Player"); portal = player.GetComponent <TrackPortals>(); //numGoals = GetComponentsInChildren<Text>()[5]; //numGoals.text = goal.goalnum.ToString(); }