Ejemplo n.º 1
0
        public override void Update()
        {
            base.Update();

            var residents = TransportUtil.GetResidentPassengerCount(LineID);
            var tourists  = TransportUtil.GetTouristPassengerCount(LineID);

            LineName         = TransportUtil.GetLineName(LineID);
            _name.text       = LineName;
            _stops.text      = TransportUtil.GetStopCount(LineID).ToString();
            _passengers.text = String.Format("{0}/{1}", residents, tourists);
            _trips.text      = String.Format("{0}%", TransportUtil.GetTripsSaved(LineID));
            _vehicles.text   = TransportUtil.GetVehicleCount(LineID).ToString();

            _color.selectedColor = TransportUtil.GetLineColor(LineID);
        }