示例#1
0
        public override BaseEvent Clone()
        {
            SkillGatherDuration duration = ClassObjPool <SkillGatherDuration> .Get();

            duration.CopyData(this);
            return(duration);
        }
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            SkillGatherDuration duration = src as SkillGatherDuration;

            this.targetId      = duration.targetId;
            this.triggerTime   = duration.triggerTime;
            this.triggerRadius = duration.triggerRadius;
        }