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); }
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); }