private IEnumerator Burst() { weapon.ShootSingleBullet(); for (int i = 0; i < bulletShootInSingleBurst - 1; i++) { yield return(new WaitForSeconds(intervalBetweenShoot)); weapon.ShootSingleBullet(); } }
public void Fire() { if (CanShoot()) { lastShootTime = Time.time; weapon.ShootSingleBullet(); } }