I am making a card game sort of thing and all the cards have the same back and so i am wanting to make the cards (small planes) and want the cards to have all the same back but different fronts. How would i do that? i am wanting only to have 1 copy of the back and the cards just to reference the back sprite to save space.
You can have two references for two different sprites and use SpriteRenderer to change them at runtime, like so:
public Sprite front;
public Sprite back;
private SpriteRenderer sr;
void Start()
{
sr = GetComponent<SpriteRenderer>();
//set the card's sprite to be the back side at the start of the game
sr.sprite = back;
}
void FlipCard()
{
//change the card's sprite from the back side to the fornt side
sr.sprite = front;
}