I would do a little bit different.
a) create a Main Character as parent with only a transform component
b) create a child game object attached to it with the other components, renderer, rigid body, etc
c) do the same for all characters, so they will have a parent and one child
d) Create a flow canvas with an input method for specific keyboard keys
e) at time of switch copy the complete child from one of the characters and set his parent as the Main character, then detach the child from the Main character
Cheers
Login
Register
By registering on this website you agree to our Privacy Policy.