/// <summary> /// Process a line and creates the wave info /// </summary> /// <param name="line"></param> the line /// <returns></returns> the info for the wave private static WaveInfo processWave(string line) { //Debug.Log(line); WaveInfo wave = new WaveInfo(); string[] unitInfo = line.Split(';'); for (int i = 0; i < unitInfo.Length; i++) { string[] parts = unitInfo[i].Split(','); if (parts.Length == 4) // do not run valid inputs { wave.Add(processUnitInfo(parts)); //Debug.Log(unitInfo[i]); } } return(wave); }