Good morning everyone.
I have a problem in which I can not get it out:
-Make some mines that generate resources, multiplied, by two float and that this multiplication is added in a float every second in an arrays of structures.
In the code 1 it works and it is what I want to reproduce in the code 2, but I cannot make it work in an array of structure. Each element of this array is a mine and I want to go through each mine and do the same process as in code 1 on each element of the array and I can’t get it to do it.
Apart from this, I would like to show that float in a Text in the UI, but I still can’t get it. I plan to save the text, inside each mine, so that each one has its own UI text assigned to it.
I show you images of the cases.
If you think it is convenient to do it another way, I am open without problem. It may be that I am very focused on doing it this way, but it may be, that it is not the best.
Thank you very much to all of you.