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