Exemple #1
0
    IEnumerator RandomNextArea()
    {
        yield return(new WaitForSeconds(WaitTime));

        curArea = areas[Random.Range(0, areas.Length)];
        curArea.DisplayThis(showRect);
        StartCoroutine(KeepPanel());
    }
Exemple #2
0
 void OnEnable()
 {
     curArea = areas[Random.Range(0, areas.Length)];
     curArea.DisplayThis(showRect);
     StartCoroutine(KeepPanel());
 }