Question by
GouzElFada · Nov 19, 2020 at 07:18 PM ·
script.compareincreaseturn
[Beginner] AutoResolve Combat based on Level
Hi there,
I'm new to Unity and coding in general; followed a couple of tutorials and starting to getting familiar with the way things work.
I would need some help with a basic #C script: when I hit my "Go" button, I need the script to compare the level (text) of each character (static image) and highlight the highest level one as the winner. Character1 level=X Character2 level=Y
I also try to associate a "Combat number" Z variable (text) that increases by +1 every time I hit the "Go" button. I guess it must be written in the same script.
Thank you very much for helping me!
Comment