예제 #1
0
 // Use this for initialization
 void Awake()
 {
     //anim = GetComponent(); WILL FIX THIS LATER!!!
     npcAudio        = GetComponent <AudioSource>();
     capsuleCollider = GetComponent <CapsuleCollider>();
     sign            = GameObject.FindGameObjectWithTag("Signpost");
     signpost        = sign.GetComponent <SignPostTracker>();
     goals           = signpost.goals;
 }
예제 #2
0
 // Use this for initialization
 void Awake()
 {
     playerAudio   = GetComponent <AudioSource>();
     fpcontroller  = GetComponent <RigidbodyFirstPersonController>();
     baseball      = GetComponentInChildren <BaseballBat>();
     currHealth    = GetComponent <PlayerHealth>().currHealth;
     signpost      = GameObject.FindGameObjectWithTag("Signpost");
     signpostGoals = signpost.GetComponent <SignPostTracker>();
     goalnum       = signpostGoals.goals;
 }