- Home /
Entering/exiting script
Hello! I have been working on a Entering/Exiting script, but when entering, i wan't to disable the FPS-Controller and it's children and enable the tank camera. Can someone give a example?
Comment
Best Answer
Answer by kievar1983 · Jan 01, 2012 at 10:00 PM
you can use the gameobject.active to disable the script. you can also switch which camera is active the same way.
http://unity3d.com/support/documentation/ScriptReference/GameObject-active.html
for your camera's i would tag them and find them through tags
Your answer
Follow this Question
Related Questions
Parkour type game 1 Answer
How to apply shaders to a 3d model? 2 Answers
How Would I Create An (FPS RPG)? 1 Answer
Raycast without collider 1 Answer
FPSMouseScript.js 1 Answer