예제 #1
0
    IEnumerator Shoot()
    {
        canshoot = false;
        if (ammocount.CurrentAmmo() > 0)
        {
            PlayMuzzleFlash();
            ProcessRaycast();
            ammocount.ReduceAmmo();
        }
        yield return(new WaitForSeconds(timeBetweenShots));

        canshoot = true;
    }