Add logout, back to select role button handler

This commit is contained in:
HungDK
2026-02-03 09:47:55 +07:00
parent 8b82734fcf
commit 55f73c3f2b
4 changed files with 38 additions and 0 deletions
@@ -0,0 +1,17 @@
using UnityEngine;
using BrewMonster.Network;
namespace BrewMonster.UI
{
/// <summary>
/// Attach to the in-game button: sends LOGOUT(1) and returns to Select Role.
/// </summary>
public class BtnBackToSelectRole : MonoBehaviour
{
public void OnClick()
{
UnityGameSession.ReturnToSelectRole();
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f9aed6caec10d2a44a39e3b9c458c5c5
@@ -0,0 +1,17 @@
using UnityEngine;
using BrewMonster.Network;
namespace BrewMonster.UI
{
/// <summary>
/// Attach to the Select Role screen button: sends LOGOUT(0) and returns to Login UI.
/// </summary>
public class BtnLogoutAccount : MonoBehaviour
{
public void OnClick()
{
UnityGameSession.LogoutAccount();
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 725d0d91266148944894d6c831bf2650