update core

This commit is contained in:
2024-10-25 16:51:34 +08:00
parent 2bb98a4b79
commit 524c3afbc6
12 changed files with 500 additions and 122 deletions

View File

@@ -25,6 +25,7 @@ namespace StateSystem.State
protected override async void OnEnter (params object[] args)
{
AudioManager.Instance.PlayBGM (BgmAudio.LobbyBgm);
GameUpdateMgr.Instance.AddUpdater (DoUpdate);
OnActived ();

View File

@@ -142,6 +142,8 @@ namespace StateSystem.State
{
GameUpdateMgr.Instance.CreateTimer (1f , () =>
{
CameraEffectUtils.Instance.SetAberration (0f , 0f);
CameraEffectUtils.Instance.SetGameCamBlur (0f , 0f , null);
BeginStaticPanel.ReleasePanel ();
if (HasTempGame)
{
@@ -149,7 +151,7 @@ namespace StateSystem.State
}
else
{
this.stateMachineRunner.OpenState (GameGlobalState.GameHome);
UIManager.Instance.OpenView (UIPanel.InitTipPanel);
}
});
}

View File

@@ -1,7 +1,10 @@
using System.Collections.Generic;
using System.StateSystem;
using Framework.UI;
using UnityEngine;
using UnityEngine.UI;
using IcecreamView;
using StateSystem;
namespace Views{
@@ -10,6 +13,14 @@ namespace Views{
[SerializeField] private Button _button;
public override void OnOpenView(IC_ViewData parameters)
{
this._button.onClick.AddListener (() =>
{
UIManager.Instance.OpenLoading (() =>
{
this.ViewConnector.CloseView ();
GameStateManager.Instance.OpenState (GameGlobalState.GameHome);
});
});
}