Exemple #1
0
 public virtual void SetObject(SpriterObject @object)
 {
     if (Object == null)
     {
         throw new System.ArgumentException("object can not be null!");
     }
     this.Object = @object;
 }
Exemple #2
0
 public SpriterObject(SpriterObject @object)
     : this(@object.Position.Copy(), @object.Scale.Copy(), @object.Pivot.Copy(), @object.Angle, @object.Alpha, @object.@ref)
 {
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 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);
 }