示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (parkingManager)
     {
         GetComponent <UnityEngine.UI.Text>().text = "Number of Cars Parked: " + parkingManager.GetNumberOfParkedCars();
     }
     else
     {
         GetComponent <UnityEngine.UI.Text>().text = "Number of Cars Parked: ";
     }
 }