Example #1
0
    // invoked by the pause-toggle
    public void PauseToggleSelected(bool bOn)
    {
        if (!arManager)
        {
            return;
        }

        if (bOn)
        {
            bSessionPaused = arManager.PauseSession();
        }
        else
        {
            if (bSessionPaused)
            {
                arManager.ResumeSession();
                bSessionPaused = false;
            }
        }
    }