/// <summary>
 /// 玩家武器背包添加
 /// </summary>
 /// <param name="player"></param>
 public static void AttachPlayerWeaponBags(this PlayerEntity player)
 {
     if (!player.hasPlayerWeaponBagSet)
     {
         player.AddPlayerWeaponBagSet(WeaponUtil.CreateEmptyBagContainers());
     }
 }
Beispiel #2
0
        /// <summary>
        /// 玩家武器背包添加
        /// </summary>
        /// <param name="player"></param>
        public static void AttachPlayerWeaponBags(this PlayerEntity player, Contexts context)
        {
            var containers = WeaponUtil.CreateEmptyBagContainers();

            player.AddPlayerWeaponBagSet(containers);
        }