Example #1
0
        public override BaseEvent Clone()
        {
            PickFlyDuration duration = ClassObjPool <PickFlyDuration> .Get();

            duration.CopyData(this);
            return(duration);
        }
Example #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            PickFlyDuration duration = src as PickFlyDuration;

            this.targetId        = duration.targetId;
            this.height          = duration.height;
            this.gravity         = duration.gravity;
            this.actor_          = duration.actor_;
            this.done_           = duration.done_;
            this.lastTime_       = duration.lastTime_;
            this.totalTime       = duration.totalTime;
            this.bMotionControl  = duration.bMotionControl;
            this.movement        = duration.movement;
            this.motionControler = duration.motionControler;
        }