Exemplo n.º 1
0
        public bool stopAnimation(string animationName)
        {
            AnimationSpecification anim = getAnimation(animationName);

            if (anim != null)
            {
                return(anim.stop());
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        //Default parameters sens = 1, animationSpeed = 1.0, cycle = true
        public bool playAnimation(string animationName, int sens, double animationSpeed, bool cycle)
        {
            AnimationSpecification anim = getAnimation(animationName);

            if (anim != null)
            {
                anim.setShape(activeShape);
                return(anim.play(animationSpeed, sens, cycle));
            }
            else
            {
                return(false);
            }
        }