[HELP] How to switch the mode of displacement ?
Hi everybody !
I am new on unity, and for the needs of a school project, I need your help in code!
I have a controller in the 1st person (Prefab base Unity), and a controller "aerial" (the character is supposed to fly) always in the 1st person. My problem is that I do not know how to make the transition between the two modes of movement. This must happen when the player comes into contact with an enemy. (Normal Control> collision with an enemy> Air Control)
Similarly, if the player collides with a specific object, it resumes the normal mode of movement.
I am a beginner in code, and any help would be welcome! I hope my description is clear ^^
Thank you for coming back! :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612132832im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Joystick Input from Switch Pro Controller 0 Answers
FPS Walker bunny hops if stop walking while on slopes 2 Answers
Spaceship Script not working? 0 Answers
Animation doesn't seem to be saving> 1 Answer