public void OnPickup(OAPickupable pickup) { inventory.OnPickup(pickup.Value); var index = spawned.IndexOf(pickup); MoveItem(spawned, prevSpawned, index, false); }
public void OnPickup(OAPickupable pickup) { inventory.OnPickup(pickup.Value); Destroy(pickup.gameObject); if (children.Count == 0) { Destroy(gameObject); } }