public StaticFrameAnimation(SPAnim state, float scale) { if (state == null) { throw new System.ArgumentNullException("state"); } _state = state; _scale = scale; }
public void Apply(SPAnim anim) { anim.Weight = this.weight; anim.Speed = this.speed; anim.Layer = this.layer; anim.WrapMode = this.wrapMode; anim.BlendMode = this.blendMode; anim.TimeSupplier = this.timeSupplier.TimeSupplier; }
public static AnimSettings From(SPAnim anim) { return(new AnimSettings() { weight = anim.Weight, speed = anim.Speed, layer = anim.Layer, wrapMode = anim.WrapMode, blendMode = anim.BlendMode, timeSupplier = new SPTime(anim.TimeSupplier) }); }
public StaticFrameAnimation(SPAnim state) : this(state, 1.0f) { }
public void Dispose() { _state = null; }