IEnumerator RandomNextArea() { yield return(new WaitForSeconds(WaitTime)); curArea = areas[Random.Range(0, areas.Length)]; curArea.DisplayThis(showRect); StartCoroutine(KeepPanel()); }
void OnEnable() { curArea = areas[Random.Range(0, areas.Length)]; curArea.DisplayThis(showRect); StartCoroutine(KeepPanel()); }