private void TimeManager_OnMinutePassed() { int sec; int min; int hr; TimeManager.GetHour(out sec, out min, out hr); Color PanelColor = BlendColor(TimeManagerScript.ToSeconds(TimeManager.Day, hr, min, sec), TimeManager.Day); Panel.color = PanelColor; }
void Awake() { TimeManager.OnSecondPassed += SecondPassed; int startSeconds; int startMinutes; int startHours; TimeManager.GetHour(out startSeconds, out startMinutes, out startHours); HoursAdvance(startHours); MinutesAdvance(startMinutes); UpdateHands(); }