示例#1
0
    bool isHoliday(int day)
    {
        bool      holiday     = false;
        Transform selectedDay = monthLayouts[selectedMonth].transform.Find(day.ToString());

        if (selectedDay.GetComponent <dayController>())
        {
            dayController = selectedDay.GetComponent <dayController>();
            holiday       = dayController.isHoliday;
        }
        return(holiday);
    }
示例#2
0
    bool hasReminder(int day)
    {
        bool      reminder    = false;
        Transform selectedDay = monthLayouts[selectedMonth].transform.Find(day.ToString());

        if (selectedDay.GetComponent <dayController>())
        {
            dayController = selectedDay.GetComponent <dayController>();
            if (dayController.year == selectedYear)
            {
                reminder = dayController.hasReminder;
            }
        }
        return(reminder);
    }