DiscoverTenerife
|
class that controls he panels that show the current user stats. More...
Private Member Functions | |
void | Awake () |
This method is called before the first frame, it instantiate the firebaseHandlerObject_ property and checks if both placesAreReady and userDataIsReady method of firebaseHandler return true it calls loadData method, in other case it sets the dataLoaded_ property to false. More... | |
void | Update () |
This method is called once on each frame. If the data isnt loaded and both placesAreReady and userDataIsReady methods of firebaseHandler class returns true it calls the loadData method. More... | |
void | loadData () |
Update the data of all the panels that shows the current user's stats using the getters of UserData class. It also changes the dataLoaded_ to true. More... | |
Private Attributes | |
GameObject[] | infoPanels_ |
Array with all the GameObjects that shows the different stats of the current user. More... | |
firebaseHandler | firebaseHandlerObject_ |
Reference to the firebaseHandler object. More... | |
bool | dataLoaded_ |
True if the current user's scores is already loaded, false in other case. More... | |
class that controls he panels that show the current user stats.
|
private |
This method is called before the first frame, it instantiate the firebaseHandlerObject_ property and checks if both placesAreReady and userDataIsReady method of firebaseHandler return true it calls loadData method, in other case it sets the dataLoaded_ property to false.
|
private |
Update the data of all the panels that shows the current user's stats using the getters of UserData class. It also changes the dataLoaded_ to true.
|
private |
This method is called once on each frame. If the data isnt loaded and both placesAreReady and userDataIsReady methods of firebaseHandler class returns true it calls the loadData method.
|
private |
True if the current user's scores is already loaded, false in other case.
|
private |
Reference to the firebaseHandler object.
|
private |
Array with all the GameObjects that shows the different stats of the current user.