I found this website here:
that informed me how to get at my other scripts boolean flag to set it based on the C# scripts actions. I put the js script in the Plugins folder and run this code:
Why is it always null? I seem to be missing something here
public class CameraStateMachine : MonoBehaviour {
public rotateScript myOrbiterScript; //rotateScript.js in pluginsFolder.
// Use this for initialization
void Start () {
myOrbiterScript = this.GetComponent<rotateScript>();
if(myOrbiterScript==null)
{
Debug.Log ("SO NULL");
}
else
Debug.Log ("looks good!");
}
etc..