update core

This commit is contained in:
2024-10-27 21:13:14 +08:00
parent 9eea176c23
commit 3c8edf4613
7 changed files with 11 additions and 6 deletions

View File

@@ -250,7 +250,7 @@ namespace Game.Component
if (this._curAttackCDTime > 0)
{
_curAttackCDTime -= Time.deltaTime;
this._curAttackCDTime -= Time.deltaTime;
}
AttackCheck ();

View File

@@ -20,7 +20,7 @@ namespace Game.Component
private TimeHandler _timeHandler;
private void OnEnable ()
public override void Pool_Enable ()
{
this._timeHandler?.Kill ();
if (!this.audioSetting.audioPath.IsNullOrWhitespace ())
@@ -28,9 +28,10 @@ namespace Game.Component
AudioManager.Instance.PlaySound (this.audioSetting.audioPath , this.audioSetting.volume);
}
this._timeHandler = GameUpdateMgr.Instance.CreateTimer (this.duration , this.DestroyPoolObject);
base.Pool_Enable ();
}
private void OnDisable ()
public void Pool_OnDisable ()
{
this._timeHandler?.Kill ();
}

View File

@@ -23,6 +23,7 @@ namespace Game.FsmNode
public static string GroupName = typeof(GameFight).FullName;
protected override async void OnEnter (params object[] args)
{
UIManager.Instance.CloseView (UIPanel.GamePanel);
UIManager.Instance.OpenView (UIPanel.GamePanel);
CameraEffectUtils.Instance.SetAberration (0f , 0.5f);
CameraEffectUtils.Instance.SetGameCamBlur (0f , 0.5f , null);