Пример #1
0
        public Picker(Package package, WeaponBelt weaponBelt)
        {
            _Package    = package;
            _WeaponBelt = weaponBelt;

            PublicEvents.PickupItem.AddListener(Pickup);
        }
Пример #2
0
        public void ReceiveItem(ItemGroup group)
        {
            int remaining = WeaponBelt.PutItem(group).Remaining.FirstOrDefault().Count;

            if (remaining == 0)
            {
                return;
            }
            group.Count = remaining;

            remaining = Package.PutItem(group).Remaining.FirstOrDefault().Count;
            if (remaining == 0)
            {
                return;
            }
            group.Count = remaining;

            Drop(group);
        }