public void StartNetworkHost() { host = gameObject.AddComponent <NetworkHost>(); NetworkSync sync = gameObject.AddComponent <NetworkSync>(); sync.Initialize(0, "GameController"); host.Initialize(); matchmakingHost = GetComponent <MatchmakingHost>() ?? gameObject.AddComponent <MatchmakingHost>(); }