Files
test/Assets/PerfectWorld/Scripts/UI/Login/BtnBackToSelectRole.cs
T
2026-02-27 20:46:21 +07:00

24 lines
602 B
C#

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()
{
CECUIManager.Instance.ShowMessageBox(
title: "Thoát",
message: "Đang rời khỏi Thế Giới Hoàn Mỹ",
messageBoxType: MessageBoxType.YesButton
);
UnityGameSession.ReturnToSelectRole();
}
}
}