void Start() { rad = this.gameObject.GetComponent <getRadians>(); rads = rad.returnrot(); }
// Start is called before the first frame update void Start() { rads = GameObject.Find("Joint Monitor").GetComponent <getRadians>(); targetVal = rads.returnrot(); }