Beispiel #1
0
        public int unitOperationChoose  = 0; //1 is modeOne , 2 is modeTwo , 3 is modeThree

        public void SaveSettingDataToPlayerPrefs()
        {
            SettingDataToPlayerPrefs settingData = new SettingDataToPlayerPrefs();

            settingData.soundChoose          = soundChoose;
            settingData.musicChoose          = musicChoose;
            settingData.damageNumChoose      = damageNumChoose;
            settingData.displayBarChoose     = displayBarChoose;
            settingData.languageIndex        = languageIndex;
            settingData.camareViewChoose     = camareViewChoose;
            settingData.qualitySettingChoose = qualitySettingChoose;
            settingData.recordScreenChoose   = recordScreenChoose;
            settingData.unitOperationChoose  = unitOperationChoose;

            PlayerPrefsUtils.SaveToPlayerPrefs("SettingData" + GetPlayerId(), settingData);
        }