7 Years Ago
Added CopyToWithRepool for Character state. The generated CopyTo doesn't handle poolable types within poolable types very well. Copying to a new instance makes a copy of the original class' MotorState (if it has one), and assigns it to the new instance's MotorState. If the new instance already had a MotorState assigned, it'll now no longer have a reference and never get re-pooled. CopyToWithRepool safely disposes and re-pools the old MotorState if it has one.