예제 #1
0
        protected override void OnModRefreshed()
        {
            if (NormalGravity == null)
            {
                NormalGravity = PhysicsManager.Instance.Gravity;
            }

            PhysicsManager.Instance.Gravity = ModdedSettings.GetModdedSettingsIntValue(this, SETTINGS_SAVE_ID_GRAVITY, -10);
        }
예제 #2
0
파일: Main.cs 프로젝트: X606/MyMod-BotMods
        protected override void OnModRefreshed()
        {
            /*Application.targetFrameRate = 1000;
             * QualitySettings.vSyncCount = 0;
             *
             * QualitySettings.antiAliasing = 8;
             * QualitySettings.shadowResolution = ShadowResolution.VeryHigh;
             * QualitySettings.softParticles = true;
             * QualitySettings.shadowDistance = 1000f;
             * QualitySettings.softParticles = true;*/

            SetAntiAliasingEnabled(ModdedSettings.GetModdedSettingsIntValue(this, ANTI_ALIASING_OPTION_ID, 2));
            SetShadowDistance(ModdedSettings.GetModdedSettingsFloatValue(this, SHADOW_DISTANCE_OPTION_ID, 500f));
            SetShadowResolution((ShadowResolution)ModdedSettings.GetModdedSettingsIntValue(this, SHADOW_RESOLUTION_OPTION_ID, 2));
            SetFPSTarget(ModdedSettings.GetModdedSettingsIntValue(this, TARGET_FPS_OPTION_ID, 300));
            SetSoftParticles(ModdedSettings.GetModdedSettingsBoolValue(this, SOFT_PARTICLES_OPTION_ID, true));
            SetAnisotropicFiltering((AnisotropicFiltering)ModdedSettings.GetModdedSettingsIntValue(this, ANISOTROPIC_FILTERING_OPTION_ID, (int)AnisotropicFiltering.Enable));
        }