Shooter.Controls.Weapon.Reload C# (CSharp) Method

Reload() public method

public Reload ( Queue curSounds ) : void
curSounds Queue
return 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