Example #1
0
    public IEnumerator ShowWhenDone()
    {
        yield return(new WaitForSeconds(.7F));

        foreach (GameObject g in correctOrder)
        {
            SayButton sb = g.GetComponent <SayButton>();
            sb.StartCoroutine(sb.LightUp(3));
        }
    }
Example #2
0
    public IEnumerator ShowOrder()
    {
        if (!showingOrder)
        {
            showingOrder = true;
            foreach (GameObject g in correctOrder)
            {
                //Make bool to not have lots of thingies
                yield return(new WaitForSeconds(lightUpTime));

                SayButton sb = g.GetComponent <SayButton>();
                sb.StartCoroutine(sb.LightUp(lightUpTime));
            }
            showingOrder = false;
        }
    }