浏览代码

removing unneeded kludge for getting NetworkingManagerGO

/main
David Woodruff 4 年前
当前提交
51fa5d4c
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 10
      Assets/Scripts/Shared/Net/GameNetHub.cs

10
Assets/Scripts/Shared/Net/GameNetHub.cs


{
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();

正在加载...
取消
保存