Is there a way I can have two controllers for the same Player, but use them at different times?
I want to use the First Person Controllers (prefab for iPhone) during some parts of the gameplay, and then switch to the Player Relative Controls during other parts.
My tries and searches have come up with nothing yet though, so I thought Id ask as well.
asked Mar 22 '10 at 11:23 PM
Sure, have both control scripts attached to the player, and disable the first person control script when needed and enable the player relative control script instead. And vice versa. Assuming the fp script was called FirstPersonControl and you're doing it from another script:
If you're doing it from within the script, you just need
Also, as an aside, most functions in disabled scripts can still be accessed. Disabling scripts primarily just disables Update and OnGUI functions and not many others.
answered Mar 23 '10 at 12:58 AM