DiscoverTenerife
Private Member Functions | Private Attributes | List of all members
currentZoneController Class Reference

Class that shows the zone that the current user is. More...

Inheritance diagram for currentZoneController:

Private Member Functions

void Awake ()
 this method is called before the first frame, it initializes the gpsController_ property. More...
 
void Update ()
 this method is called each frame, it checks if the user has changed his zone. If that is the case, it update the textObject_ to show the new current zone. More...
 

Private Attributes

GameObject textObject_
 text where the current zone will be shown. More...
 
gpsController gpsController_ = null
 stores a reference to the gpsController. More...
 
string lastZone_ = ""
 stores the last zone that the user was, for optimization reasons. More...
 

Detailed Description

Class that shows the zone that the current user is.

Member Function Documentation

◆ Awake()

void currentZoneController.Awake ( )
private

this method is called before the first frame, it initializes the gpsController_ property.

◆ Update()

void currentZoneController.Update ( )
private

this method is called each frame, it checks if the user has changed his zone. If that is the case, it update the textObject_ to show the new current zone.

Member Data Documentation

◆ gpsController_

gpsController currentZoneController.gpsController_ = null
private

stores a reference to the gpsController.

◆ lastZone_

string currentZoneController.lastZone_ = ""
private

stores the last zone that the user was, for optimization reasons.

◆ textObject_

GameObject currentZoneController.textObject_
private

text where the current zone will be shown.


The documentation for this class was generated from the following file: