Beispiel #1
0
 void ResetControl()
 {
     mCameraSensitivity.SetValue((SystemSettingData.Instance.cameraSensitivity - CamSMin) / (CamSMax - CamSMin));
     mHoldGunCameraSensitivity.SetValue((SystemSettingData.Instance.holdGunCameraSensitivity - CamSMin) / (CamSMax - CamSMin));
     mCameraFOVScroll.SetValue((SystemSettingData.Instance.CameraFov - CamFOVMin) / (CamFOVMax - CamFOVMin));
     this.DriveCameraInertiaScroll.SetValue((SystemSettingData.Instance.DriveCamInertia - m_DriveCamInertiaMin) / (m_DriveCamInertiaMax - m_DriveCamInertiaMin));
     mCameraInertia.SetValue((SystemSettingData.Instance.CamInertia - CamInertiaMin) / (CamInertiaMax - CamInertiaMin));
     mCamHorizontal.isChecked = SystemSettingData.Instance.CameraHorizontalInverse;
     mCamVertical.isChecked   = SystemSettingData.Instance.CameraVerticalInverse;
     mAttacMode.isChecked     = SystemSettingData.Instance.AttackWhithMouseDir;
     mUseController.isChecked = SystemSettingData.Instance.UseController;
 }
Beispiel #2
0
    void ResetAudio()
    {
        mSoundVolume.SetValue(SystemSettingData.Instance.SoundVolume);
        mMusicVolume.SetValue(SystemSettingData.Instance.MusicVolume);
        mDialogVolume.SetValue(SystemSettingData.Instance.DialogVolume);
        mEffectVolume.SetValue(SystemSettingData.Instance.EffectVolume);

        SoundVolume  = SystemSettingData.Instance.SoundVolume;
        MusicVolume  = SystemSettingData.Instance.MusicVolume;
        DialogVolume = SystemSettingData.Instance.DialogVolume;
        EffectVolume = SystemSettingData.Instance.EffectVolume;
    }