예제 #1
0
 public void AddLevelToJson()
 {
     level_aux.desempenho = DDAAply.instance.getStringPlayerState(DDAAply.instance.desempenho);
     level_aux.excitacao  = DDAAply.instance.getStringPlayerState(DDAAply.instance.excitacao);
     level_aux.zona       = DDAAply.instance.getStringPlayerState(DDAAply.instance.zona);
     level.Add(level_aux);
     level_aux = null;
     level_aux = new DataFileLevel();
 }
예제 #2
0
    private DataFileLevel level_aux; //não imprime no json por ser private

    public DataFile()
    {
        System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); //para imprimir separar os floats com '.' e nao ','
        level_aux = new DataFileLevel();
        level     = new List <DataFileLevel>();
    }