Пример #1
0
    public void PrevMonth()
    {
        string month = "";

        monthNumber--;

        if (monthNumber < 1)
        {
            if (cycleThroughMonth)
            {
                if (monthNumber < 1)
                {
                    monthNumber = 12;
                }
                else
                {
                    monthNumber = 1;
                }
            }
        }

        if (monthNumber < 1)
        {
            monthNumber = 1;
        }

        month           = CalendarUtils.GetMonthFull(monthNumber);
        monthInput.text = month;
        print("PrevMonth: " + monthNumber);
    }
Пример #2
0
    public void NextMonth()
    {
        string month = "";

        monthNumber++;

        if (monthNumber > 12)
        {
            if (cycleThroughMonth)
            {
                monthNumber = 1;
            }
            else
            {
                monthNumber = 12;
            }
        }

        month           = CalendarUtils.GetMonthFull(monthNumber);
        monthInput.text = month;

        print("NextMonth: " + monthNumber);
    }