private static CustomPlatformSettings Load() { CustomPlatformSettings cpSettings = new CustomPlatformSettings(); cpSettings.loadCustomEnvironments(); return(cpSettings); }
bool IsSettingsApplicable(CustomPlatformSettings settings) { // Check setting is not null, and supported bool returnFlag = false; if ((settings != null) && (settings.Platform.IsSupported() == true)) { if (settings.MouseLockState == MouseState.Both) { // Switch the flag to true returnFlag = true; } else { // Check if the current scene is supposed to have the cursor locked, and wasn't locked from the previous scene returnFlag = ((SceneChanger != null) && (SceneChanger.CurrentScene != null) && (SceneChanger.CurrentScene.LockMode == CursorLockMode.Locked) && (Scenes.SceneTransitionManager.LastCursorMode != CursorLockMode.Locked)); } } return(returnFlag); }