|
|
|
|
|
|
{ |
|
|
|
Object.DontDestroyOnLoad(this.gameObject); |
|
|
|
|
|
|
|
//FIXME_DMW: would like to remove this. I have added it because at the moment I can't stop MLAPI from destroying the
|
|
|
|
//GameHub object I created (that I intended to live for the entire lifetime of the game), and replacing it with its
|
|
|
|
//own copy (which naturally doesn't have this editor-configured value set). I have tried setting "UsePrefabSync" to false,
|
|
|
|
//but didn't stop this behavior.
|
|
|
|
if (!NetworkingManagerGO) |
|
|
|
{ |
|
|
|
NetworkingManagerGO = GameObject.Find("NetworkingManager"); |
|
|
|
} |
|
|
|
|
|
|
|
//FIXME_DMW could this be improved?
|
|
|
|
NetManager.OnServerStarted += () => |
|
|
|
{ |
|
|
|
NetworkStart(); |
|
|
|