Ejemplo n.º 1
0
 private void InitSettingsInfo()
 {
     settingsInfo = SystemSettingsInfo.ParseSystemInfo();
     if (settingsInfo == null)
     {
         Debug.Log("Load local setting");
         settingsInfo                       = new SystemSettingsInfo();
         settingsInfo.isPlayAudio           = true;
         settingsInfo.isPlayBackgroundMusic = true;
         settingsInfo.bestScore             = 0;
         SystemSettingsInfo.SaveSystemInfo(settingsInfo);
     }
 }
Ejemplo n.º 2
0
    private void SaveScore()
    {
        SystemSettingsInfo info = settingsInfo;

        if (GameController.manager.score > GameController.manager.settingsInfo.bestScore)
        {
            info.bestScore         = score;
            settingsInfo.bestScore = score;
        }
        else
        {
            info.bestScore = settingsInfo.bestScore;
        }
        SystemSettingsInfo.SaveSystemInfo(info);
    }
Ejemplo n.º 3
0
    private void SaveSettings()
    {
        SystemSettingsInfo info = GetCurrentInfo();

        SystemSettingsInfo.SaveSystemInfo(info);
    }