Ejemplo n.º 1
0
 public GameSetting() {
     currentQuality = "Simple";
     path = PlatformTool.GetPersistentDataPath("GameSetting.bin");
     GameSetting setting = SerializeTool.GetDataWithPath<GameSetting>(path);
     if (setting == null) {
         musicValue = 0.5f;
         soundValue = 0.5f;
         return;
     } // end if 
     musicValue = setting.musicValue;
     soundValue = setting.soundValue;
     SetQuality(setting.currentQuality);
 } // end GameSetting