Add logout, back to select role button handler
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user