- Home /
Selling items in game
Hi, So I am making a project where player collects items and those items are simple ints. But then when player have more than one, he or she goes to the store to sell them. It is nothing complicated in one script there is: if (other.CompareTag("Player")) { Destroy(this.gameObject); wheatAmmount.wheatAmmount++; }
and then in second script: if (other.CompareTag("Player")) { if(wheat.wheatAmmount>0) { wheat.wheatAmmount = 0; } }
And in second script I have no idea how to take all of the wheatAmmount and change it into money
Answer by slimssupplement · Sep 26, 2019 at 12:17 PM
Thanks for the info. I didn't know anything about making money by selling cards on steam. That really helped. Also, will the money be transferred to my bank or on my steam wallet?
Your answer
Follow this Question
Related Questions
How many objects is too many? 2 Answers
Color[][] is not storing color. Object reference not set to an instance of an object. 2 Answers
Loop animation 1 Answer
Can you set up IAP with real money? 1 Answer
Convert float to int without Math.Round? 2 Answers