Exemplo n.º 1
0
 public void WhenClicked(Transform _movementGoal)
 {
     if (isClicked == false)
     {
         if (manaManager.CheckMana(currentCard.spellLogic.mana))
         {
             manaManager.UseMana(currentCard.spellLogic.mana);
             StartCoroutine("LerpMovement", _movementGoal);
         }
     }
     else
     {
         manaManager.UseMana(-currentCard.spellLogic.mana);
         StartCoroutine("LerpMovementBack");
     }
 }