예제 #1
0
 private void interpolateSpriterObject(com.brashmonkey.spriter.objects.SpriterObject
                                       target, com.brashmonkey.spriter.objects.SpriterObject obj1, com.brashmonkey.spriter.objects.SpriterObject
                                       obj2, float startTime, float endTime, float frame)
 {
     if (obj2 == null)
     {
         return;
     }
     this.interpolateAbstractObject(target, obj1, obj2, startTime, endTime, frame);
     target.setPivotX(this.interpolate(obj1.getPivotX(), obj2.getPivotX(), startTime,
                                       endTime, frame));
     target.setPivotY(this.interpolate(obj1.getPivotY(), obj2.getPivotY(), startTime,
                                       endTime, frame));
     target.setAlpha(this.interpolateAngle(obj1.getAlpha(), obj2.getAlpha(), startTime
                                           , endTime, frame));
 }
예제 #2
0
 /// <summary>Manipulates the given object.</summary>
 /// <remarks>Manipulates the given object.</remarks>
 /// <param name="object"></param>
 public virtual void modSpriterObject(com.brashmonkey.spriter.objects.SpriterObject
                                      @object)
 {
     this.modObject(@object);
     @object.setAlpha(@object.getAlpha() * this.alpha);
 }