Ejemplo n.º 1
0
    public void Load(string path)
    {
        if (_isLoad)
        {
            return;
        }

        _isLoad = true;

        _dataAudio = new Dictionary <int, DataAudio>();

        AudioDataConfig audioData = LoadJson.LoadJsonAudioFromFile(path);

        foreach (AudioDataBase audioDataBase in audioData.audioDataBaseGroup)
        {
            DataAudio data = new DataAudio();
            data.Load(audioDataBase);

            _dataAudio.Add(data.id, data);
        }
    }