public override void AllPlayersLeaveLobby(RpcArgs args) { MainThreadManager.Run(() => { ClientConnect clientScript = FindObjectOfType <ClientConnect>(); if (clientScript == null) { return; } Debug.Log("client lobby before leaving: " + clientScript.ourLobbyId.Value); clientScript.LeaveLobby(); clientScript.ourLobbyId = new SteamId(); Debug.Log("client lobby after leaving: " + clientScript.ourLobbyId.Value); }); }