Example #1
0
    private static void SaveOnProgramData(List <string> waves)
    {
        var pData = XMLSerie.ReadXMLProgram();

        pData.Voices = waves;
        XMLSerie.WriteXMLProgram(pData);
    }
Example #2
0
    private void ProgramDataInit()
    {
        //only gets created if in Editor
#if UNITY_EDITOR
        XMLSerie.WriteXMLProgram(CreateProgramDataObjOrUpdate());
#endif
    }
Example #3
0
    /// <summary>
    /// Saves to file audio settings
    /// </summary>
    public static void SaveToFile()
    {
        SaveToFilePlayerPref();
        //Debug.Log("Saving settings");

        return;

        var pData = XMLSerie.ReadXMLProgram();

        pData.SoundIsOn = Settings.ISSoundOn;
        pData.MusicIsOn = Settings.ISMusicOn;

        pData.SoundLevel = AudioCollector.SoundLevel;
        pData.MusicLevel = AudioCollector.MusicLevel;

        pData.Units        = Unit.CurrentSystem();
        pData.AutoSaveFrec = AutoSaveFrec;

        //screen
        pData.QualityLevel = QualitySettings.GetQualityLevel();
        pData.isFullScreen = Screen.fullScreen;

        pData.Lang = Languages.CurrentLang();

        XMLSerie.WriteXMLProgram(pData);
    }