Esempio n. 1
0
 ///<summary>The calendar Window class is responsible for drawing on the window. The buttons will behave differently that that on the inspector</summary>
 public CalendarWindow(ScheduleGenerator scheduleGenerator, GUISkin skin, int year, int month, int day, float buttonWidth)
 {
     _scheduleGenerator = scheduleGenerator;
     _skin        = skin;
     _year        = year;
     _month       = month;
     _day         = day;
     _buttonWidth = buttonWidth;
 }
 /// <summary>
 /// This function is called when the object becomes enabled and active.
 /// </summary>
 void OnEnable()
 {
     _scheduleGenerator = (ScheduleGenerator)target;
     _startYearProp     = serializedObject.FindProperty("StartYear");
     _startMonthProp    = serializedObject.FindProperty("StartMonth");
     _startDayProp      = serializedObject.FindProperty("StartDay");
     _endDayProp        = serializedObject.FindProperty("EndDay");
     _endMonthProp      = serializedObject.FindProperty("EndMonth");
     _endYearProp       = serializedObject.FindProperty("EndYear");
 }
Esempio n. 3
0
 public void Setup(ScheduleGenerator scheduleGenerator, GUISkin skin)
 {
     _scheduleGenerator = scheduleGenerator;
     _skin = skin;
 }