void Fire() { Instantiate(Projectile, SpawnProjectile.position, SpawnProjectile.rotation); Bullets--; timerBetweenShots = TimeBetweenShots; hud.SetBullets(Bullets); }
void Awake() { hud = gameController.GetComponent <HUDcontroller>(); hud.SetBullets(Bullets); hud.SetScore(0); timerBetweenShots = TimeBetweenShots; }