Beispiel #1
0
    protected override void Clear()
    {
        base.Clear();
        foreach (Transform child in _handContainer)
        {
            Destroy(child.gameObject);
        }

        _archive.Clear();
        _deck.Clear();
    }
Beispiel #2
0
 protected virtual void Clear()
 {
     foreach (Transform child in _playedCreaturesContainer)
     {
         Destroy(child.gameObject);
     }
     foreach (Transform child in _playedArtefactsContainer)
     {
         Destroy(child.gameObject);
     }
     _discard.Clear();
 }
Beispiel #3
0
        private object CanMoveItemTo(ContainerController controller, Item item, int slot, int amount)
        {
            var targetItem = controller?.Container?.GetSlot(slot);

            if (targetItem != null)
            {
                // Give target item back
                controller.GiveItemBack(targetItem);
                controller.Clear();
            }

            return(null);
        }
 protected override void Clear()
 {
     base.Clear();
     _playedEffect.Clear();
 }