update map gen

This commit is contained in:
2026-06-09 22:46:32 +07:00
parent 9048435ac4
commit 1c8544d383
28 changed files with 834 additions and 442 deletions

View File

@@ -69,25 +69,25 @@ namespace Hallucinate.UI
}
else
{
// 2. Đăng ký user mới
bool success = await FirebaseService.RegisterUser(username);
if (success)
{
// 3. Lưu lại và đóng popup
PlayerPrefs.SetString("Username", username);
PlayerPrefs.Save();
Debug.Log($"[Login] Registered as {username}");
// Thông báo cho UIManager biết đã login xong
uiManager.OnLoginSuccess();
await PlayTransitionOut();
}
else
{
ShowError("Connection error!");
_confirmBtn.SetEnabled(true);
_confirmBtn.text = "CONFIRM";
}
// // 2. Đăng ký user mới
// bool success = await FirebaseService.RegisterUser(username);
// if (success)
// {
// // 3. Lưu lại và đóng popup
// PlayerPrefs.SetString("Username", username);
// PlayerPrefs.Save();
// Debug.Log($"[Login] Registered as {username}");
//
// // Thông báo cho UIManager biết đã login xong
// uiManager.OnLoginSuccess();
// await PlayTransitionOut();
// }
// else
// {
// ShowError("Connection error!");
// _confirmBtn.SetEnabled(true);
// _confirmBtn.text = "CONFIRM";
// }
}
}