Esempio n. 1
0
 public void Fire()
 {
     if (weaponTimer < weaponCooldown)
     {
         return;
     }
     weaponTimer = 0;
     bulletObject.transform.position = bulletSpawner.position;
     bulletObject.transform.rotation = bulletSpawner.rotation;
     bulletObject.InitBullet(damage, 20);
 }