Object reference not set to .. instance of object

Hi,
I wrote a large script all in the one c# file, it’s pretty messy, so I’m trying to split it off into two (for now) and call it by referencing the other scripts.

My main script is called ‘turn.cs’ and is monobehaviour, but accesses my ‘menu.cs’ script by instancing it as

 public Menu other;

my menu script inherits from my turn class directly –

 public class Menu : turn { 

but when I call a function from menu in my turn script –

other.menuFunction();

I get the error, - object reference not set to instance of object.

I’m not sure about this and it’s seriously doing my head in!
Thanks for any help.

EDIT: my Menu function creates some GUI buttons… but my other.menuFunction is inside a OnGUI function… so I think thats ok?

Thanks for the replies.

Invertex that was a good solution, I had to adapt it a little bit, but the get component function was exactly what i needed, I think when I was tinkering though that the < > references scripts in c# … but i’m not too sure. I’m going to have to look into this some more

This is what got it working:

Menu other = this.GetComponent<Menu> ();
			other.myMenu ();

Cheers for the help!