예제 #1
0
 // Use this for initialization
 void Awake()
 {
     player      = GameObject.FindGameObjectWithTag("Player");
     portal      = player.GetComponent <TrackPortals>();
     pickupAudio = GetComponent <AudioSource>();
     boxCollider = GetComponent <BoxCollider>();
     anim        = GetComponent <Animator>();
 }
예제 #2
0
 // 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();
 }