public IEnumerator Perform() { if(initFunc != null) yield return StartCoroutine(initFunc()); stats = GetComponent<BundleStats>(); stats.Begin(); if (testFunc != null) yield return StartCoroutine(testFunc()); stats.End(); if (cleanupFunc != null) yield return StartCoroutine(cleanupFunc()); }
private void OutputTable(string[,] table, string path) { string delimiter = ","; StreamWriter fs = new StreamWriter(path); fs.Write(BundleStats.OutputLegend()); for (int i = 0; i < table.GetLength(0); i++) { for (int j = 0; j < table.GetLength(1); j++) { fs.Write(table[i, j] + delimiter); } fs.Write(Environment.NewLine); } fs.Close(); guiText.text += "Saved output to : " + path; }
public IEnumerator Perform() { if (initFunc != null) { yield return(StartCoroutine(initFunc())); } stats = GetComponent <BundleStats>(); stats.Begin(); if (testFunc != null) { yield return(StartCoroutine(testFunc())); } stats.End(); if (cleanupFunc != null) { yield return(StartCoroutine(cleanupFunc())); } }