예제 #1
0
    void Update()
    {
        monthsVerticalScroller.Update();
        yearsVerticalScroller.Update();
        daysVerticalScroller.Update();

        string dayString   = daysVerticalScroller.GetResults();
        string monthString = monthsVerticalScroller.GetResults();
        string yearsString = yearsVerticalScroller.GetResults();

        if (dayString.EndsWith("1") && dayString != "11")
        {
            dayString = dayString + "st";
        }
        else if (dayString.EndsWith("2") && dayString != "12")
        {
            dayString = dayString + "nd";
        }
        else if (dayString.EndsWith("3") && dayString != "13")
        {
            dayString = dayString + "rd";
        }
        else
        {
            dayString = dayString + "th";
        }

        dateText.text = monthString + " " + dayString + " " + yearsString;
    }
예제 #2
0
 private void Update()
 {
     _monthsVerticalScroller.Update();
     _dayVerticalScroller.Update();
 }
예제 #3
0
 private void Update()
 {
     VerticalScroller.Update();
 }