private void SetSceneState(xpScene scene, bool mode, int FrameBuffer = 1) { if (mode) { scene.SetOnline(FrameBuffer); } else { scene.SetOffline(); } }