コード例 #1
0
 private void updateTransformedTempObject(SpriterAbstractObject
                                          source, SpriterAbstractObject target)
 {
     source.copyValuesTo(target);
     if (!target.hasParent())
     {
         target.setX(target.getX() + this.pivotX);
         target.setY(target.getY() + this.pivotY);
     }
     this.translateRelative(target, (target.hasParent()) ? this.tempBones2[target.getParentId
                                                                               ()] : this.tempParent);
 }
コード例 #2
0
        private void updateTempObject(SpriterAbstractObject
                                      source, SpriterAbstractObject[] target)
        {
            bool found = false;

            for (int j = 0; j < target.Length && !found; j++)
            {
                if (source.getId() == target[j].getId())
                {
                    source.copyValuesTo(target[j]);
                    found = true;
                }
            }
        }