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