public Picker(Package package, WeaponBelt weaponBelt) { _Package = package; _WeaponBelt = weaponBelt; PublicEvents.PickupItem.AddListener(Pickup); }
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); }