public void OnConnectRequest(NetworkRunner runner, NetworkRunnerCallbackArgs.ConnectRequest request, byte[] token) { if (runner.CurrentScene > 0) { Util.Log($"Refused connection requested by {request.RemoteAddress}"); request.Refuse(); } else { request.Accept(); } }
public void OnConnectRequest(NetworkRunner runner, NetworkRunnerCallbackArgs.ConnectRequest request, byte[] token) { request.Accept(); }