1
NGUI 3 Support / best way to reference UIlabels
« on: August 02, 2014, 10:55:38 AM »
Hi we are currently making our first game and slowly getting the hang of everything, Just wondering what the best way to reference all the labels in our game would be.
We have quite a few labels that need to be updated dynamically like gold, stone, cash, dynamic text etc.
I was thinking the best way would be to make a gameobject called uilabelstore and store them all there as public static variables for easy reference in other scripts but not sure how to go about it. Any help with some code to go along with it would be great help.
Thankyou in advance.
We have quite a few labels that need to be updated dynamically like gold, stone, cash, dynamic text etc.
I was thinking the best way would be to make a gameobject called uilabelstore and store them all there as public static variables for easy reference in other scripts but not sure how to go about it. Any help with some code to go along with it would be great help.
Thankyou in advance.
