public override BaseEvent Clone() { FilterTargetDistance filterTargetDistance = ClassObjPool <FilterTargetDistance> .Get(); filterTargetDistance.CopyData(this); return(filterTargetDistance); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); FilterTargetDistance filterTargetDistance = src as FilterTargetDistance; if (filterTargetDistance != null) { this.sourceId = filterTargetDistance.sourceId; this.targetId = filterTargetDistance.targetId; this.bCheckFilter = filterTargetDistance.bCheckFilter; } }