How can i implement in game currency in a script where i have an array?
This is the script in Unity Engine. So i have set the price to 100 let’s say. But how can i access the array(price item - which is an int in my script)? and how can i reduce the currency with this value. For example
coinAmount -= price. Can you help me?