How to stop this Behaivour after its done with its its job.
Hello everyone.I ve written a code when you pressed ''C''you are able to look around by activating mouse look script and disabling mouse maneuver script.(Actually disabling maneuver script didnt work so i gave 0.0f to the variable of maneuver script by calling it).After using mouse look script by releasing ''c'' camera of course doesnt raset to its original position as usual.I tried ''transform.LookAt (target);'' but because of it refreshes continously under Update when ship is upside down,controls doesnt come handy.To solve this problem.I wanted to use ''transform.LookAt (target);'' one time after releasing ''c'' to disable it from updating so camera will be stabled there because it is child of spaceship.How would i do this. Thanks a lot to the community. Here is the related video. https://www.youtube.com/watch?v=5tKGeqz40Qg&feature=youtu.be
Your answer
![](https://koobas.hobune.stream/wayback/20220612095256im_/https://answers.unity.com/themes/thub/images/avi.jpg)