Example #1
0
 // Start is called before the first frame update
 void Awake()
 {
     anim             = GetComponent <Animator>();
     playerAudio      = GetComponent <AudioSource>();
     playerMovement   = GetComponent <PlayerMovement>();
     currentHealth    = startingHealth;
     myPlayerShooting = GetComponentInChildren <MyPlayerShooting>();
 }