Ejemplo n.º 1
0
    IEnumerator Sequence()
    {
        yield return(new WaitForSeconds(delay));

        pan = true;
        yield return(new WaitForSeconds(firstPan));

        pan = false;
        dandelion.OnPointerClick(null);
        yield return(new WaitForSeconds(0.3f));

        dandelion.OnPointerClick(null);
        yield return(new WaitForSeconds(0.3f));

        dandelion.OnPointerClick(null);
        yield return(new WaitForSeconds(0.3f));

        pan = true;
        yield return(new WaitForSeconds(secondPan));

        pan = false;
        elderFlower.OnPointerClick(null);
        yield return(new WaitForSeconds(1.1f));

        pan = true;
        yield return(new WaitForSeconds(thirdPan));

        pan = false;
        foxTap.OnPointerClick(null);
    }
Ejemplo n.º 2
0
    IEnumerator Sequence()
    {
        yield return(new WaitForSeconds(delay));

        pan = true;
        yield return(new WaitForSeconds(firstPan));

        pan = false;
        purpleFlower.OnPointerClick(null);
        yield return(new WaitForSeconds(flowerPlayTime));

        pan = true;
        yield return(new WaitForSeconds(secondPan));

        pan = false;
        yield return(new WaitForSeconds(thirdPan));

        spiderThread.Pluck(GetPED(GetPluckPos(0)));
        yield return(new WaitForSeconds(0.4f));

        spiderThread.Pluck(GetPED(GetPluckPos(0)));
        yield return(new WaitForSeconds(0.3f));

        spiderThread.Pluck(GetPED(GetPluckPos(1)));
        yield return(new WaitForSeconds(0.5f));

        spiderThread.Pluck(GetPED(GetPluckPos(2)));
        yield return(new WaitForSeconds(0.5f));

        spiderThread.Pluck(GetPED(GetPluckPos(3)));
        yield return(new WaitForSeconds(1f));

        spider.OnPointerClick(null);
    }