Exemplo n.º 1
0
        public PinballElement(float X, float Y)
        {
            this.X = X;
            this.Y = Y;

            _origin = RotationOrigin.MiddleCenter;

            init();
        }
 public AnimationManager(Animation animation, RotationOrigin rotationOrigin, float scale = 1f)
 {
     this.rotationOrigin = rotationOrigin;
     this.scale          = scale;
     _animation          = animation;
     frameCount          = animation.frameCount;
     frameSpeed          = animation.frameSpeed;
     _currentFrame       = 0;
     _timer = 0;
 }