Repair unity packet
This commit is contained in:
@@ -26,12 +26,12 @@ namespace Hallucinate.UI
|
||||
_winRateText = root.Q<Label>("WinRateText");
|
||||
_logoutBtn = root.Q<Button>("LogoutBtn");
|
||||
|
||||
root.Q<Button>("BackBtn").clicked += async () => await uiManager.Pop();
|
||||
/*root.Q<Button>("BackBtn").clicked += async () => await uiManager.Pop();*/
|
||||
|
||||
if (_logoutBtn != null)
|
||||
/*if (_logoutBtn != null)
|
||||
{
|
||||
_logoutBtn.clicked += Logout;
|
||||
}
|
||||
}*/
|
||||
|
||||
if (LocalizationManager.Instance != null)
|
||||
{
|
||||
@@ -65,11 +65,11 @@ namespace Hallucinate.UI
|
||||
if (_logoutBtn != null) _logoutBtn.text = LocalizationManager.Instance.GetLocalizedString("PROFILE_LOGOUT");
|
||||
}
|
||||
|
||||
public override async Task PlayTransitionIn()
|
||||
/*public override async Task PlayTransitionIn()
|
||||
{
|
||||
LoadProfileData(); // Refresh data every time we show the profile
|
||||
await base.PlayTransitionIn();
|
||||
}
|
||||
}*/
|
||||
|
||||
private void LoadProfileData()
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace Hallucinate.UI
|
||||
_winRateText.text = "72%";
|
||||
}
|
||||
|
||||
private async void Logout()
|
||||
/*private async void Logout()
|
||||
{
|
||||
// Clear local save data
|
||||
PlayerPrefs.DeleteKey("Username");
|
||||
@@ -106,7 +106,7 @@ namespace Hallucinate.UI
|
||||
|
||||
// Redirect to Login Screen
|
||||
await uiManager.Push<LoginController>();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user