June 2017
Beginner to intermediate
336 pages
8h 44m
English
Binding the data for panel would be very much like what we have done for sensor indicator objects. We will get this data in place during gazing at the floor, which means inside the OnFocusEnter() method:
Text buildingTitle = GameObject.FindWithTag("BuildingTitle"). GetComponent<Text>(); buildingTitle.text = floor.FloorNumber;
This takes reference for BuildingTitle control and sets the values of Building Title.
Text fireMessage = GameObject.FindWithTag("FireText").GetComponent<Text>(); ...Read now
Unlock full access