Beispiel #1
0
        public virtual void CollectItem(TriggerGenericAction action)
        {
            var collection = action.GetComponentInChildren <ItemCollection>();

            if (collection != null)
            {
                collection.CollectItems(this);
            }
        }
Beispiel #2
0
    public virtual void CollectItem(TriggerGenericAction action)
    {
        var collection = action.GetComponentInChildren <ItemCollection>();

        if (collection != null)
        {
            if (collection.items.Count > 0)
            {
                var itemCol = collection.items.vCopy();
                StartCoroutine(CollectItemsWithDelay(itemCol, collection.onCollectDelay, collection.textDelay, collection.immediate));
            }
        }
    }