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