Call it like you would call any other method in a different script: get a reference to that script and call the method by the reference. If that script is attached to the gameObject entering the trigger, you can use other.gameObject.GetComponent<YourScriptName> ().LoadGameLevel (1);
Otherwise, you need to refernce the corresponding gameObject in a different way (e.g. a public field, via singleton reference, GameObject.Find (), or something along those lines).
so that it runs the coroutine? Both of those are on the same script, not separate ones, I’m just using a collider instead of a button. Sorry Have never been much good at level loading stuff
EDIT:
Never mind, I think if I’m understanding you correctly all I need in that same script is this in order to access the coroutine:
Yeah, I already got that, that’s why I tried to help you access LoadGameLevel.
Is your OnTriggerEnter in the same script as your LoadGameLevel? If so, you can just call it inside the OnTriggerEnter. If not, where in your hierarchy is it?
Alright, so it’s not involved in the collision that’s happening, right? Because then we need to get the reference in a different way, but that’s not a problem. Did you consider making the LoadLevel script a Singleton? If not, I suggest you do a quick research about those and give it a go. Should be pretty easy to do and if you get stuck, I’ll help you out.