public override BaseEvent Clone() { OutOfControlActorDuration duration = ClassObjPool <OutOfControlActorDuration> .Get(); duration.CopyData(this); return(duration); }
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; }