Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. public UICard GetCardPrefab(CardCategory category, bool forMyCard = true, bool forPersistentCard = false, PersistentCardCategory persistentCategory = PersistentCardCategory.Attack)
  2. {
  3. //Will we be using this for a persistent card instantiation?
  4. if (forPersistentCard)
  5. {
  6. switch (persistentCategory)
  7. {
  8. case PersistentCardCategory.Attack:
  9. if (forMyCard)
  10. return attackPersistentPlayer;
  11. else
  12. return attackPersistentEnemy;
  13.  
  14. case PersistentCardCategory.Buff:
  15. if (forMyCard)
  16. return buffPersistentPlayer;
  17. else
  18. return buffPersitentEnemy;
  19.  
  20. case PersistentCardCategory.Defuff:
  21. if (forMyCard)
  22. return debuffPersistentPlayer;
  23. else
  24. return debuffPersistentEnemy;
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31. /if (debuff)
  32. return debuffPersistentCard;
  33. //Is this for a card which is owned by the local player? else for the enemy player?
  34. if (forMyCard)
  35. return selfPersistentCard;
  36. else
  37. return enemyPersistentCard;/
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement