private void OnEnable() { LogicEvent.RegEvent(LogicEvent.CALENDAR_SELECTED, OnSelected); if (initFlag) { calendarPanel.InitAllCalendars(); } }