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;
    }
예제 #2
0
    void Awake()
    {
        TimeManager.OnSecondPassed += SecondPassed;

        int startSeconds;
        int startMinutes;
        int startHours;

        TimeManager.GetHour(out startSeconds, out startMinutes, out startHours);

        HoursAdvance(startHours);
        MinutesAdvance(startMinutes);

        UpdateHands();
    }