void Awake() { hud = gameController.GetComponent <HUDcontroller>(); hud.SetBullets(Bullets); hud.SetScore(0); timerBetweenShots = TimeBetweenShots; }
private void MakeDamage(float danger) { if (danger > armor) { health -= danger; hud.SetScore(hud.GetScore() + ScorePoints); } }