public override void Awake(){ base.Awake(); CameraControl.main.AddTarget(this.transform); motor = GetComponent<MoveAttacker>(); atk = GetComponent<PlayerAttack>(); }
bool isDead; // Whether the player is dead. void Awake () { // Setting up the references. playerAudio = GetComponent <AudioSource> (); moveAttacker = GetComponent <MoveAttacker> (); //playerShooting = GetComponentInChildren <PlayerShooting> (); // Set the initial health of the player. currentHealth = startingHealth; }