Exemplo n.º 1
0
        public override BaseEvent Clone()
        {
            PlayAnimDuration duration = ClassObjPool <PlayAnimDuration> .Get();

            duration.CopyData(this);
            return(duration);
        }
Exemplo n.º 2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            PlayAnimDuration duration = src as PlayAnimDuration;

            this.targetId         = duration.targetId;
            this.clipName         = duration.clipName;
            this.crossFadeTime    = duration.crossFadeTime;
            this.layer            = duration.layer;
            this.bLoop            = duration.bLoop;
            this.startTime        = duration.startTime;
            this.endTime          = duration.endTime;
            this.applyActionSpeed = duration.applyActionSpeed;
            this.playNextAnim     = duration.playNextAnim;
            this.alwaysAnimate    = duration.alwaysAnimate;
            this.m_animationCache.Clear();
        }