TouhouLS/TouhouStation/Assets/RealCode/Menu/ButtonS/ButtonLeaveLobby.cs

15 lines
350 B
C#
Raw Normal View History

2020-08-22 05:29:00 +00:00
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();
}
}
}