ShowReducedCost.cs 983 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System;
  4. using System.Linq;
  5. using UnityEngine;
  6. public partial class CardEffectCommons
  7. {
  8. public static IEnumerator ShowReducedCost(Hashtable hashtable)
  9. {
  10. PlayCardClass playCard = GetPlayCardClassFromHashtable(hashtable);
  11. if (playCard != null)
  12. {
  13. if (playCard.PayCost)
  14. {
  15. CardSource Card = GetCardFromHashtable(hashtable);
  16. if (Card != null)
  17. {
  18. List<Permanent> Permanents = GetPermanentsFromHashtable(hashtable);
  19. {
  20. GManager.instance.memoryObject.ShowMemoryPredictionLine(
  21. Card.Owner.ExpectedMemory(Card.PayingCost(playCard.Root, Permanents, checkAvailability: false)));
  22. yield return new WaitForSeconds(0.2f);
  23. }
  24. }
  25. }
  26. }
  27. }
  28. }