Hello Everyone,
I know I must be doing something dumb, but I can’t quite get rid of this warning in the title, and I believe its causing me bugs further down the line.
Here’s the relevant source:
public void CreateMatch(){
NetworkLobbyManager.singleton.StartMatchMaker ();
NetworkLobbyManager.singleton.matchMaker.CreateMatch ("Test", 8, true, "", "", "", 0, 0, OnMatchCreate);
}
public void OnMatchCreate(bool success, string extendedInfo, MatchInfo info){
Debug.Log(success); //true
MatchInfo i = info;
NetworkServer.Listen(i, 9000);
NetworkLobbyManager.singleton.StartHost (i);
}
I can’t seem to find the solution anywhere in the manual. Can anyone explain to me exactly what’s going on? Is there some way that I should be setting up the singleton object to prevent this?