public virtual void SetObject(SpriterObject @object) { if (Object == null) { throw new System.ArgumentException("object can not be null!"); } this.Object = @object; }
public SpriterObject(SpriterObject @object) : this(@object.Position.Copy(), @object.Scale.Copy(), @object.Pivot.Copy(), @object.Angle, @object.Alpha, @object.@ref) { }
/// <summary> /// Sets the values of this object to the values of the given object. </summary> /// <param name="object"> the object </param> public virtual void Set(SpriterObject @object) { this.Set(@object.Position, @object.Angle, @object.Scale, @object.Pivot, @object.Alpha, @object.@ref); }
protected internal virtual void TweenObject(SpriterObject object1, SpriterObject object2, SpriterObject target, float t, Curve curve, int spin) { this.TweenBone(object1, object2, target, t, curve, spin); target.Alpha = curve.TweenAngle(object1.Alpha, object2.Alpha, t); [email protected](object1.@ref); }