Esempio n. 1
0
        public static void Equip(IPlayer player, WeaponSet weaponSet)
        {
            if (player == null || weaponSet.IsEmpty)
            {
                return;
            }

            player.GiveWeaponItem(weaponSet.Melee);
            ProjectileManager.SetPowerup(player, weaponSet.Primary, weaponSet.PrimaryPowerup);
            ProjectileManager.SetPowerup(player, weaponSet.Secondary, weaponSet.SecondaryPowerup);
            player.GiveWeaponItem(weaponSet.Throwable);
            player.GiveWeaponItem(weaponSet.Powerup);

            if (weaponSet.UseLazer)
            {
                player.GiveWeaponItem(WeaponItem.LAZER);
            }
        }
Esempio n. 2
0
 static WeaponSet()
 {
     Empty = new WeaponSet();
 }