Repair unity packet
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using PrimeTween;
|
||||
using System.Threading.Tasks;
|
||||
using DG.Tweening;
|
||||
|
||||
namespace Hallucinate.UI
|
||||
{
|
||||
@@ -19,8 +20,10 @@ namespace Hallucinate.UI
|
||||
_errorLabel = root.Q<Label>("ErrorMsg");
|
||||
_confirmBtn = root.Q<Button>("ConfirmBtn");
|
||||
|
||||
/*
|
||||
if (_confirmBtn != null)
|
||||
_confirmBtn.clicked += OnConfirmClicked;
|
||||
*/
|
||||
|
||||
// Đăng ký Localization
|
||||
if (LocalizationManager.Instance != null)
|
||||
@@ -45,7 +48,7 @@ namespace Hallucinate.UI
|
||||
|
||||
}
|
||||
|
||||
private async void OnConfirmClicked()
|
||||
/*private async void OnConfirmClicked()
|
||||
{
|
||||
string username = _nameInput.value.Trim();
|
||||
|
||||
@@ -89,16 +92,16 @@ namespace Hallucinate.UI
|
||||
_confirmBtn.text = "CONFIRM";
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
private void ShowError(string msg)
|
||||
/*private void ShowError(string msg)
|
||||
{
|
||||
if (_errorLabel == null) return;
|
||||
_errorLabel.text = msg;
|
||||
_errorLabel.style.display = DisplayStyle.Flex;
|
||||
}
|
||||
}*/
|
||||
|
||||
public override async Task PlayTransitionIn()
|
||||
/*public override async Task PlayTransitionIn()
|
||||
{
|
||||
// Login hiện ra như một overlay trung tâm
|
||||
if (root != null)
|
||||
@@ -108,6 +111,6 @@ namespace Hallucinate.UI
|
||||
}
|
||||
Show();
|
||||
await Tween.Custom(0f, 1f, duration: 0.5f, onValueChange: val => root.style.opacity = val);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user