WorldClock/Scripts/UIExamples/FullClockDisplay.cs
/// <summary>
/// Displays the time for the given WorldClock
/// </summary>
Displays the time for the given WorldClock
Displays the time for the given WorldClock
public void DisplayTime()
    {
        if (ClockToObserve != null)
        {
            minutesText.text = (ClockToObserve.GetMinutes() < 10) ? "0" + ClockToObserve.GetMinutes() : ClockToObserve.GetMinutes().ToString();
            hoursText.text = (ClockToObserve.GetHours() < 10) ? "0" + ClockToObserve.GetHours() : ClockToObserve.GetHours().ToString();
            daysText.text = ClockToObserve.GetDays().ToString();
            monthsText.text = ClockToObserve.GetMonths().ToString();
            yearsText.text = ClockToObserve.GetYears().ToString();
        }
        else
            Debug.Log("Assign a World Clock to display time");
    }
public void DisplayTime ( ) { if ( ClockToObserve != null ) { minutesText . text = ( ClockToObserve . GetMinutes ( ) < 10 ) ? " " + ClockToObserve . GetMinutes ( ) : ClockToObserve . GetMinutes ( ) . ToString ( ) ; hoursText . text = ( ClockToObserve . GetHours ( ) < 10 ) ? " " + ClockToObserve . GetHours ( ) : ClockToObserve . GetHours ( ) . ToString ( ) ; daysText . text = ClockToObserve . GetDays ( ) . ToString ( ) ; monthsText . text = ClockToObserve . GetMonths ( ) . ToString ( ) ; yearsText . text = ClockToObserve . GetYears ( ) . ToString ( ) ; } else Debug . Log ( " " ) ; }
Displays the time for the given WorldClock
Displays the time for the given WorldClock