Beispiel #1
0
    public void MoveCardTo(CardBehaviour cardBehaviour, SlotType aim, Action callback = null, bool withoutDelay = false)
    {
        GetLayout(aim).AddCardToLayout(cardBehaviour);
        cardBehaviour.AddCallback(callback);

        if (withoutDelay)
        {
            cardBehaviour.transform.localPosition = cardBehaviour.GetPosition(GetLayout(aim));
            cardBehaviour.transform.localRotation = cardBehaviour.GetRotation(GetLayout(aim));
        }
    }