diff --git a/.idea/.idea.HALLUCINATE/.idea/workspace.xml b/.idea/.idea.HALLUCINATE/.idea/workspace.xml index dae7920f..239b0e66 100644 --- a/.idea/.idea.HALLUCINATE/.idea/workspace.xml +++ b/.idea/.idea.HALLUCINATE/.idea/workspace.xml @@ -6,10 +6,9 @@ - - + diff --git a/Assets/Scove/UIScaleTest.unity b/Assets/Scove/UIScaleTest.unity index 916a194b..1a8a17dc 100644 --- a/Assets/Scove/UIScaleTest.unity +++ b/Assets/Scove/UIScaleTest.unity @@ -149,12 +149,17 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: bcb7b8ed439bb4546b0648c627c2ce5d, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::Hallucinate.UI.UIManager + gameIcon: {fileID: 0} + cursorTrailSprite: {fileID: 21300000, guid: b9c4a623634019648b505c6122243b00, type: 3} + cursorSize: 30 + trailLength: 15 + enableRipples: 1 + rippleColor: {r: 1, g: 1, b: 1, a: 0.5} mainMenuTemplate: {fileID: 9197481963319205126, guid: 8dcbe9fd5e8c43c43921af21a6347624, type: 3} lobbyTemplate: {fileID: 9197481963319205126, guid: 2b2480fff4320714e9b503e7d5ef2c9f, type: 3} profileTemplate: {fileID: 9197481963319205126, guid: e481c7d94f843374cb57e215bf9b0624, type: 3} settingsTemplate: {fileID: 9197481963319205126, guid: 1e24e32e93afac8449d0bb181ab5c6a9, type: 3} hudTemplate: {fileID: 9197481963319205126, guid: b87ba33c06a8c1d46a3d9f03416ebf3f, type: 3} - showDebugInfo: 1 --- !u!114 &458228300 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/UI/MainMenuController.cs b/Assets/Scripts/UI/MainMenuController.cs index b6790dd9..02df4980 100644 --- a/Assets/Scripts/UI/MainMenuController.cs +++ b/Assets/Scripts/UI/MainMenuController.cs @@ -16,9 +16,11 @@ namespace Hallucinate.UI private float _lastInteractionTime; private const float IDLE_TIMEOUT = 5.0f; + private bool _isFirstLoad = true; // Biến cờ để nhận biết lần đầu vào game private Tween _pulseTween; private Tween _rotationTween; + private Texture2D _currentIcon; public override void Initialize(VisualElement uxmlRoot, UIManager manager) { @@ -34,7 +36,6 @@ namespace Hallucinate.UI return; } - ResetLogoPosition(); _logo.RegisterCallback(OnLogoClicked); // Bind Buttons @@ -44,6 +45,7 @@ namespace Hallucinate.UI root.Q