Public Member Functions | |
void | UpdateMarkings () |
This script updates a card's art to represent data from DSCard.cardData.
This is a quick implementation for traditional card design, with a piece of main art in the middle, and corner art in 2 corners of the card.
Art is grabbed from a Unity SpriteAtlas assigned to the cardDS.cardPool.
Individual sprites in the SpriteAtlas should be named to match the DSCard.cardID generated in the DSTraditionalCardSpawner.MakeTraditionalDeck() method, with the corner art having a "corner_" prefix.
This should be attached to the DSCard prefab.
You will most likely want to edit or replace this script.
|
inline |
Call this when card is being updated with new data to update the card art.