using System.Collections; using System.Collections.Generic; using UnityEngine; public class ButtonLeaveLobby : ButtonOnClick { public override void OnClick() { if (GameTransition.Instance.state == GameState.Lobby) { GameTransition.Instance.state = GameState.ConnectionInProgress; NetworkManager.net.OpLeaveRoom(); } } }