Example #1
0
        public void GetRandomItem(ItemPickup pickup)
        {
            if (!pickup.IsActive() || CurrentItem != null)
            {
                return;
            }

            pickup.Taken();
            CurrentItem = Item.GetRandomItem();

            CurrentItem.Collect(this);

            OnNewItem();
        }