Exemplo n.º 1
0
            private IEnumerator Burst()
            {
                weapon.ShootSingleBullet();
                for (int i = 0; i < bulletShootInSingleBurst - 1; i++)
                {
                    yield return(new WaitForSeconds(intervalBetweenShoot));

                    weapon.ShootSingleBullet();
                }
            }
Exemplo n.º 2
0
 public void Fire()
 {
     if (CanShoot())
     {
         lastShootTime = Time.time;
         weapon.ShootSingleBullet();
     }
 }