private void OnValidate() { //Calculate hour and minutes hourSlice = dayDuration / TOTALHOURS; hour = currentTime / hourSlice; minute = (hour - (int)hour) * 60; //Update Time UI watch.DEBUGSETHOUR((int)hour, (int)minute); watch.DEBUGSETDAY(currentDate); }