IEnumerator SimpleCheck() { yield return(new WaitForSeconds(5f)); var items = accordion.Items; if (!accordion.Items[0].Open || !accordion.Items[0].ContentObject.activeSelf) { throw new UnityException("Overview is not active!"); } foreach (var item in items) { if (item.ToggleObject.name == "Exit") { continue; } accordion.ToggleItem(item); yield return(new WaitForSeconds(5f)); } Application.Quit(); }
/// <summary> /// Simple test. /// </summary> /// <returns>Coroutine.</returns> protected virtual IEnumerator SimpleTest() { yield return(new WaitForSeconds(5f)); var items = Accordion.DataSource; if (!Accordion.DataSource[0].Open || !Accordion.DataSource[0].ContentObject.activeSelf) { throw new UnityException("Overview is not active!"); } foreach (var item in items) { if (item.ToggleObject.name == "Exit") { continue; } Accordion.ToggleItem(item); yield return(new WaitForSeconds(5f)); } Application.Quit(); }