You've already forked taptap2024_GJ_chidouren
update core
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user