示例#1
0
    protected IEnumerator SMGBulletsBehaviour()
    {
        for (int i = 0; i < numberOfBullets; i++)
        {
            yield return(new WaitForSeconds(shootInterval));

            weapon.ShootSMG("Player" + Utility.GetPlayerIndexFromBullet(this.gameObject.tag).ToString(), spreadValue);
        }
        canSpread = false;
    }