15 lines
350 B
C#
15 lines
350 B
C#
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();
|
|
}
|
|
}
|
|
|
|
}
|