Answer the question
In order to leave comments, you need to log in
How can I auto-update text? Or how to get a variable from one method in another?
Here is the shop script, where there are buttons, their price, price text and bonus, since there are a lot of buttons, I stuffed it all into an array and did it in the int index purchase method, which is responsible for the element in the array, but Index applies only to this method , that is, in Start or Update I can’t make it so that the price of the product is written at the start
Answer the question
In order to leave comments, you need to log in
If some method sets some values. It is worth calling it from other methods.
In general, I did not understand the question, and yes, please make out the code in text form.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question