public override BaseEvent Clone() { SetTagLayer layer = ClassObjPool <SetTagLayer> .Get(); layer.CopyData(this); return(layer); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SetTagLayer layer = src as SetTagLayer; this.targetId = layer.targetId; this.enableLayer = layer.enableLayer; this.layer = layer.layer; this.enableTag = layer.enableTag; this.tag = layer.tag; }