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