Пример #1
0
    public void OnPickup(OAPickupable pickup)
    {
        inventory.OnPickup(pickup.Value);
        var index = spawned.IndexOf(pickup);

        MoveItem(spawned, prevSpawned, index, false);
    }
Пример #2
0
    public void OnPickup(OAPickupable pickup)
    {
        inventory.OnPickup(pickup.Value);

        Destroy(pickup.gameObject);

        if (children.Count == 0)
        {
            Destroy(gameObject);
        }
    }