Exemplo n.º 1
0
 void Start()
 {
     if (m_sourceSamples != null)
     {
         m_samples = (SampleSaveManager.LoadSampleData(m_sourceSamples)).ToSampleContainers();
     }
 }
Exemplo n.º 2
0
    private void Concat(List <SampleContainer> samples, TextAsset target)
    {
        List <SampleContainer> targetData = SampleSaveManager.LoadSampleData(target).ToSampleContainers();

        List <SampleContainer> newData = new List <SampleContainer>();

        foreach (SampleContainer sample in targetData)
        {
            newData.Add(sample);
        }
        foreach (SampleContainer sample in samples)
        {
            newData.Add(sample);
        }

        WriteSampleData(newData, target);
    }