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