I am trying to figure out how I can enable and disable a javascript (Plates_p) which is attached to my main camera from another C# script. I have tried this:
Camera.main.GetComponent<Plates_p>().enabled = false;
This throws this error: The type or namespace name `Plates_p’ could not be found. Are you missing a using directive or an assembly reference?
I have also tried this:
Plates_p myscript;
This throws the same error? How do I solve this?
Any help is appreciated