Shooter.Controls.Weapon.Reload C# (CSharp) 메소드

Reload() 공개 메소드

public Reload ( Queue curSounds ) : void
curSounds Queue
리턴 void
        public void Reload(Queue<SoundEffect> curSounds) {
            if (ammo.Count <= 1) {
                return;
            } else if (ammo[0] <= maxAmmo) {
                curSounds.Enqueue(reload);
                ammo.Remove(0);
                ammo.Sort();
                ammo.Reverse();
                isReloading = true;
            }
        }
        //Checks if gun is reloading