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