Question by
Creepercatss · Oct 16, 2018 at 04:03 AM ·
c#programmingefficiency
Code efficiency help.
Hello everyone! I'm trying to make a stats displaying script, I'm wondering if the code i have now is the best option. It seems to be tedious and filled with if statements. I'm trying to fill out all these texts with the proper data.
The StatRetriever just grabs the data from the object and when the object is selected the data is displayed using DisplayStats()
StatRetriever --> https://paste.ofcode.org/3aNuNyKvZhM4pb63WjEgasz
StatDisplayer --> https://paste.ofcode.org/gx8rQNgYJ9XNTmJ9QxBqve
Any and all help is greatly appreciated!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612180415im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
In Game Programming Language 1 Answer
Instantiate no longer working? 3 Answers
Delete item in inventory 0 Answers