protected override void OnSetupCloneTargets(object targetObj, ICloneTargetSetup setup) { base.OnSetupCloneTargets(targetObj, setup); SpriteAnimator target = targetObj as SpriteAnimator; setup.HandleObject(this.customFrameSequence, target.customFrameSequence); }
protected override void OnCopyDataTo(object targetObj, ICloneOperation operation) { base.OnCopyDataTo(targetObj, operation); SpriteAnimator target = targetObj as SpriteAnimator; target.firstFrame = this.firstFrame; target.frameCount = this.frameCount; target.animDuration = this.animDuration; target.animLoopMode = this.animLoopMode; target.animTime = this.animTime; target.paused = this.paused; operation.HandleObject(this.customFrameSequence, ref target.customFrameSequence); }