Esempio n. 1
0
    void Update()
    {
#if DEBUG
        // Display the Debug Hud!
        if (m_bDisplayDebugHud)
        {
            m_fDeltaTime += (Time.unscaledDeltaTime - m_fDeltaTime) * 0.1f;
        }
#endif

        // Process the TimerManager! This ensures all timer callbacks are processed
        // at the start of each frame, and our specific DeltaTimes are available and
        // accurate. GameInstance is the highest priority script, set in the editor...
        TimerManager.Update();

        // Audio manager needs to know we've moved on, and that it can reset the list
        // of played samples that it's tracking...
        m_gcAudioManager.NextFrame();
    }