예제 #1
0
        private void Update()
        {
            if (Current.Game != null)
            {
                bool currentPaused = Find.TickManager?.Paused ?? false;
                if (lastPaused != currentPaused)
                {
                    OnPauseChange?.Invoke(currentPaused);
                    lastPaused = currentPaused;
                }
            }

            bool removeAll = Current.ProgramState != ProgramState.Playing;

            AudioSourceManager.Tick(removeAll);
        }