# Call function after Level loaded

I'm stuck in this situation:

I have a GameObject with a script, that persist trough Level loads.

Inside this script, when a condition is meet, i Load a Level, and also call a function. That function is a C# Messenger Broadcast() function.

The problem is that the Broadcast occurs before the level has been loaded, and so there is no Messenger Listener that can receive the event.

I need to do the Broadcast only after the level has been loaded, but I don't know how, or maybe there is a better solution.

For a simple example here is the code:

public class NetworkingManager : MonoBehaviour {

void Start(){
}

void OnConnectionLost(BaseEvent _event ){
}
Debug.Log ("Disconnected. Reason: " + _event.Params["reason"]);
}
}


public class NetworkingManager : MonoBehaviour {
void Start(){
}

void OnConnectionLost(BaseEvent _event ){