Example #1
0
 void Awake()
 {
     // Get the firePoint
     firePoint = transform.Find("FirePoint");
     if (firePoint == null)
     {
         Debug.LogError("Character is missing a FirePoint Empty. It can not shoot!");
     }
     // Get the PlayerController
     playerController = GetComponent <PlayerCharacter.PlayerController>();
     // Get Animator
     anim = transform.GetComponent <Animator>();
     //Get AudioManager
     audioManager = GameObject.Find("_AudioManager").GetComponent <AudioManager>();
 }