private static Texture2D CombineWaveForms(Texture2D[] waveForms)
{
if (waveForms.Length == 1)
{
return waveForms[0];
}
int width = waveForms[0].width;
int height = 0;
foreach (Texture2D textured in waveForms)
{
height += textured.height;
}
Texture2D textured2 = new Texture2D(width, height, TextureFormat.ARGB32, false);
int num4 = 0;
foreach (Texture2D textured3 in waveForms)
{
num4 += textured3.height;
textured2.SetPixels(0, height - num4, width, textured3.height, textured3.GetPixels());
UnityEngine.Object.DestroyImmediate(textured3);
}
textured2.Apply();
return textured2;
}