change: input dialogue on player spawn
This commit is contained in:
@@ -31,7 +31,9 @@ public class SessionManager : MonoBehaviour{
|
||||
var allocation = await RelayService.Instance.CreateAllocationAsync(maxConnections);
|
||||
NetworkManager.Singleton.GetComponent<UnityTransport>().SetRelayServerData(AllocationUtils.ToRelayServerData(allocation, connectionType));
|
||||
var joinCode = await RelayService.Instance.GetJoinCodeAsync(allocation.AllocationId);
|
||||
return NetworkManager.Singleton.StartHost() ? joinCode : null;
|
||||
|
||||
Debug.Log(joinCode);
|
||||
return NetworkManager.Singleton.StartClient() ? joinCode : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user