Esempio n. 1
0
    public void OnPickup(OAPickupable pickup)
    {
        inventory.OnPickup(pickup.Value);
        var index = spawned.IndexOf(pickup);

        MoveItem(spawned, prevSpawned, index, false);
    }
Esempio n. 2
0
    public void OnPickup(OAPickupable pickup)
    {
        inventory.OnPickup(pickup.Value);

        Destroy(pickup.gameObject);

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