Exemplo n.º 1
0
    public void MoveToHandPosition(Vector2 position, Vector3 scale, float CardMovementTiming)
    {
        ToggleInteractions?.Invoke(false);
        RectTransform cardTransform = GetComponent <RectTransform>();

        LeanTween.move(cardTransform, position, CardMovementTiming);
        LeanTween.scale(cardTransform, scale, CardMovementTiming)
        .setOnComplete(SetCardInHand);
    }
Exemplo n.º 2
0
    public IEnumerator InvokeActionCoroutine(Mingming source, Mingming target)
    {
        PlayedThisTurn = true;

        yield return(null);

        ToggleInteractions?.Invoke(false);

        yield return(InvokeActions(source.Logic, target.Logic));

        EventManager.Instance.OnDiscardCardTrigger(this);
    }
Exemplo n.º 3
0
 void SetCardInHand()
 {
     ToggleInteractions?.Invoke(true);
     PlayedThisTurn = false;
 }