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

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

            this.attackId = duration.attackId;
            this.targetId = duration.targetId;
            this.actorObj = duration.actorObj;
            this.subType  = duration.subType;
        }