public int GetNumTriangles() { if (exportAllChildren) { var objects = SteamAudioManager.GetGameObjectsForExport(gameObject); var numTriangles = 0; foreach (var obj in objects) { numTriangles += SteamAudioManager.GetNumTriangles(obj); } return(numTriangles); } else { return(SteamAudioManager.GetNumTriangles(gameObject)); } }