hi, i have a 2d game but i want to implement a system where you can collect coins which are stored and can be used to buy different characters in a shop, how would i implement this?
- Store an integer in a class for gold.
- Have a UI for the shop
- When clicking items in the shop, perform a condition (if class.GetGoldAmount > cost) and then do your logic: class.GetGoldAmount-=cost;
//add character data to your player