You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -250,7 +250,7 @@ namespace Game.Component
|
||||
|
||||
if (this._curAttackCDTime > 0)
|
||||
{
|
||||
_curAttackCDTime -= Time.deltaTime;
|
||||
this._curAttackCDTime -= Time.deltaTime;
|
||||
}
|
||||
|
||||
AttackCheck ();
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace StateSystem.State
|
||||
|
||||
private void PoolObjectPreload ()
|
||||
{
|
||||
GamePoolManager.Instance.LoadPoolObjects("",RoomGroup , 5);
|
||||
GamePoolManager.Instance.LoadPoolObjects("",RoomGroup , 0);
|
||||
// GamePoolManager.Instance.LoadPoolObjects("Object/",RoomGroup , 5);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.StateSystem;
|
||||
using Framework.Audio;
|
||||
using Framework.UI;
|
||||
using Game;
|
||||
using Game.Component;
|
||||
@@ -10,6 +11,7 @@ using MintAnimation.Runtime.Components.MintAnimation;
|
||||
using Script.Core.Utils.Extend;
|
||||
using StateSystem;
|
||||
using UnityEngine.Playables;
|
||||
using AudioType = Framework.Audio.AudioType;
|
||||
|
||||
namespace Views{
|
||||
|
||||
@@ -78,6 +80,7 @@ namespace Views{
|
||||
this._playableDirector.stopped += ToGaming;
|
||||
this._playableDirector.initialTime = 0;
|
||||
this._playableDirector.Play ();
|
||||
AudioManager.Instance.StopPlayers (AudioType.BGM , 1f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user