So heres my script i want to make to gameObject.Find(“Main Camera”); and disabled the component.How do i make it?
var m : Camera = GetComponent(MouseLook);
m.enabled = false;
So heres my script i want to make to gameObject.Find(“Main Camera”); and disabled the component.How do i make it?
var m : Camera = GetComponent(MouseLook);
m.enabled = false;
var c : Camera = GameObject.Find(“Main Camera”);
var m : MouseLook = c.GetComponent(MouseLook);
m.enabled = false;