Beispiel #1
0
    void Update()
    {
        if (IsReadyToAdvanceQuarter())
        {
            serverData.AttemptRefresh(); // when server data detects a quarter change it will force the screens to refresh.
        }
        if (QuarterTimeLeftValid && QuarterTimeLeft.TotalSeconds <= 0 && lastUpdateQuarterSecondsLeft > 0)
        {
            SendQuarterEndedEventToScreens();
        }
        lastUpdateQuarterSecondsLeft = QuarterTimeLeft.TotalSeconds;

        if (QuarterTimeLeftValid)
        {
            AudioAnnouncementManager.Inst.Update((int)QuarterTimeLeft.TotalSeconds);
        }
    }