// Use this for initialization void Start() { _model = GetComponent <SelectedDayViewModel>(); if (null == _model) { throw new MissingComponentException("SelectedDayViewController.Start - can't get SelectedDayViewModel component for model"); } _dayOfWeekController = FindObjectOfType <DayOfWeekController>(); if (null == _dayOfWeekController) { throw new MissingComponentException("SelectedDayViewController.Start - can't get DayOfWeekController component for _dayOfWeekController"); } SubscribeEvents(); UpdateDayOfWeekCap(0); // today }
// Use this for initialization void Start () { _model = GetComponent<SelectedDayViewModel>(); if (null == _model) { throw new MissingComponentException("SelectedDayViewController.Start - can't get SelectedDayViewModel component for model"); } _dayOfWeekController = FindObjectOfType<DayOfWeekController>(); if (null == _dayOfWeekController) { throw new MissingComponentException("SelectedDayViewController.Start - can't get DayOfWeekController component for _dayOfWeekController"); } SubscribeEvents(); UpdateDayOfWeekCap(0); // today }