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