Beispiel #1
0
    void AnimateShapes(float time)
    {
        if (!triangleShowing() && circleCycler.Count() >= triangleWaitTime)
        {
            triangleCycler = new DelayedCycler(shapeSpeed, 6, 1f);
            triangle.visible(true);
            triangleCycler.AddSprite(triangle);
        }

        circleCycler.Update(time);

        if (triangleShowing())
        {
            triangleCycler.Update(time);
        }
    }