Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public UICard GetCardPrefab(CardCategory category, bool forMyCard = true, bool forPersistentCard = false, PersistentCardCategory persistentCategory = PersistentCardCategory.Attack)
- {
- //Will we be using this for a persistent card instantiation?
- if (forPersistentCard)
- {
- switch (persistentCategory)
- {
- case PersistentCardCategory.Attack:
- if (forMyCard)
- return attackPersistentPlayer;
- else
- return attackPersistentEnemy;
- case PersistentCardCategory.Buff:
- if (forMyCard)
- return buffPersistentPlayer;
- else
- return buffPersitentEnemy;
- case PersistentCardCategory.Defuff:
- if (forMyCard)
- return debuffPersistentPlayer;
- else
- return debuffPersistentEnemy;
- }
- /if (debuff)
- return debuffPersistentCard;
- //Is this for a card which is owned by the local player? else for the enemy player?
- if (forMyCard)
- return selfPersistentCard;
- else
- return enemyPersistentCard;/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement