Beispiel #1
0
    public void ReadCountersFile()
    {
        string           loadedItem     = JsonFileReader.LoadJsonAsExternalResource("Counters.json");
        MetaJsonCounters loadedCounters = JsonUtility.FromJson <MetaJsonCounters>(loadedItem);

        allCounters = new Dictionary <string, CounterContent>();
        foreach (CounterContent elt in loadedCounters.myCounters)
        {
            allCounters.Add(elt.nameCounter, elt);
        }
    }