Deactivating the mouseorbiter-script on the main camera?


As written above i try ti deactivate the MouseOrbiter-script on my main camera. I thought i use Getcomponent but i got stucked. My last try was this:

Camera.main.gameObject.GetComponent<MouseOrbiter as MonoBehaviour>.enabled = false;

But the error message i got was:
Unexpected symbol `.’

How to deactivat the script?

Thanks for any help!

Components inherit GetComponent(), so you can do:

  Camera.main.GetComponent<MouseOrbiter>().enabled = false;