public override BaseEvent Clone() { MiniMapTrackDuration miniMapTrackDuration = ClassObjPool <MiniMapTrackDuration> .Get(); miniMapTrackDuration.CopyData(this); return(miniMapTrackDuration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); MiniMapTrackDuration miniMapTrackDuration = src as MiniMapTrackDuration; this.targetId = miniMapTrackDuration.targetId; this.iconPath = miniMapTrackDuration.iconPath; }