Example #1
0
 public static bool shouldPause(ScriptPauseLevel pauseLevel)
 {
     switch(pauseLevel)
     {
     case ScriptPauseLevel.Cutscene:
         return m_GameIsPaused || m_InCutscene;
     case ScriptPauseLevel.PauseMenu:
         return m_GameIsPaused;
     default:
         return false;
     }
 }
Example #2
0
    public static bool shouldPause(ScriptPauseLevel pauseLevel)
    {
        switch (pauseLevel)
        {
        case ScriptPauseLevel.Cutscene:
            return(m_GameIsPaused || m_InCutscene);

        case ScriptPauseLevel.PauseMenu:
            return(m_GameIsPaused);

        default:
            return(false);
        }
    }