I have found the answer. The reference link I needed to use was:
var Script1script = gameObject.GetComponent("script1");
Script1script.SetX(1);
Thanks for the help.
I have found the answer. The reference link I needed to use was:
var Script1script = gameObject.GetComponent("script1");
Script1script.SetX(1);
Thanks for the help.