示例#1
0
        protected override void OnSetupCloneTargets(object targetObj, ICloneTargetSetup setup)
        {
            base.OnSetupCloneTargets(targetObj, setup);
            SpriteAnimator target = targetObj as SpriteAnimator;

            setup.HandleObject(this.customFrameSequence, target.customFrameSequence);
        }
示例#2
0
        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);
        }