public ContinouslyRotatingTexture(Texture2D texture, float speed = 3E-05f, FloatBounds?scaleBounds = null, FloatBounds?speedBounds = null) { this.speed = speed; this.texture = texture; this.speedBounds = speedBounds ?? new FloatBounds(20f, 20f); this.scaleBounds = scaleBounds ?? new FloatBounds(0.1f, 0.1f); RotationDirection = Direction.Clockwise; Rotation = 0f; }
public ContinouslyScalingTexture(Texture2D texture, float speed = 1E-05f, FloatBounds?scaleBounds = null, FloatBounds?speedBounds = null) { this.speed = speed; this.texture = texture; this.speedBounds = speedBounds ?? new FloatBounds(50f, 50f); this.scaleBounds = scaleBounds ?? new FloatBounds(0.9f, 1.1f); ScaleDirection = Direction.Right; Scale = 1f; }
public ContinouslyRotatingScalingTexture(Texture2D texture, float rotationSpeed = 1f, float scaleSpeed = 1f, FloatBounds?scaleSpeedBounds = null, FloatBounds?rotationSpeedBounds = null, FloatBounds?scaleBounds = null, FloatBounds?rotationBounds = null) : this() { this.texture = texture; this.scaleSpeedBounds = scaleSpeedBounds ?? new FloatBounds(-20f, 20f); this.scaleBounds = scaleBounds ?? new FloatBounds(0.9f, 1.1f); this.scaleSpeed = scaleSpeed; this.rotationSpeedBounds = rotationSpeedBounds ?? new FloatBounds(-20f, 20f); this.rotationBounds = rotationBounds ?? new FloatBounds(-0.1f, 0.1f); this.rotationSpeed = rotationSpeed; //Rotation = 0f; RotationDirection = Direction.Clockwise; Scale = 1f; ScaleDirection = Direction.Up; scaleSpeedBuffer = 1E-05f; rotationSpeedBuffer = 3E-05f; }