Repair unity packet

This commit is contained in:
emDuy
2026-06-13 02:25:55 +07:00
parent 9048435ac4
commit 2db2424bb1
72 changed files with 52285 additions and 197 deletions

View File

@@ -2,6 +2,7 @@ using UnityEngine;
using UnityEngine.UIElements;
using PrimeTween;
using System.Threading.Tasks;
using DG.Tweening;
namespace Hallucinate.UI
{
@@ -73,25 +74,25 @@ namespace Hallucinate.UI
public void WakeUpHUD()
{
_lastActionTime = Time.time;
if (_isFaded)
/*if (_isFaded)
{
_isFaded = false;
Tween.Custom(_topLeft.style.opacity.value, 1f, duration: 0.3f, onValueChange: val => _topLeft.style.opacity = val);
Tween.Custom(_bottomLeft.style.opacity.value, 1f, duration: 0.3f, onValueChange: val => _bottomLeft.style.opacity = val);
}
}*/
}
public override void Update()
{
if (!_isFaded && Time.time - _lastActionTime > FADE_TIMEOUT)
/*if (!_isFaded && Time.time - _lastActionTime > FADE_TIMEOUT)
{
_isFaded = true;
Tween.Custom(_topLeft.style.opacity.value, 0.2f, duration: 1.0f, onValueChange: val => _topLeft.style.opacity = val);
Tween.Custom(_bottomLeft.style.opacity.value, 0.2f, duration: 1.0f, onValueChange: val => _bottomLeft.style.opacity = val);
}
}*/
}
public override Task PlayTransitionIn()
/*public override Task PlayTransitionIn()
{
Show();
_topLeft.style.opacity = 1;
@@ -103,6 +104,6 @@ namespace Hallucinate.UI
{
Hide();
return Task.CompletedTask;
}
}*/
}
}