public override BaseEvent Clone() { ChargeActorDuration chargeActorDuration = ClassObjPool <ChargeActorDuration> .Get(); chargeActorDuration.CopyData(this); return(chargeActorDuration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); ChargeActorDuration chargeActorDuration = src as ChargeActorDuration; this.triggerID = chargeActorDuration.triggerID; this.targetID = chargeActorDuration.targetID; this.moveSpeed = chargeActorDuration.moveSpeed; this.lastDistance = chargeActorDuration.lastDistance; this.maxMoveSpeed = chargeActorDuration.maxMoveSpeed; this.acceleration = chargeActorDuration.acceleration; }