update core

This commit is contained in:
2024-10-25 15:45:26 +08:00
parent 2bfcd95f09
commit 3a38008dc4
5 changed files with 8 additions and 6 deletions

View File

@@ -13,6 +13,10 @@ namespace Game.FsmNode
{
protected override async void OnEnter (params object[] args)
{
if (MapContent.Instance.ScenePart == null)
{
RoomManager.Instance.LoadScenePart (RoomManager.Instance.PartIndex);
}
AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
GameEventDefine.ChangeGameFsm.SendMessage (GameState.FightGame , true);
UIManager.Instance.CloseLoading (null);

View File

@@ -54,10 +54,6 @@ namespace Game
this._gameFsm.Active (GameState.InitGame , args);
GameUpdateMgr.Instance.AddUpdater (DoUpdate);
this.BindEvent ();
if (MapContent.Instance.ScenePart == null)
{
LoadScenePart (this.PartIndex);
}
this._gameFsm.OpenState (GameState.StartGame);
}

View File

@@ -46,7 +46,7 @@ Material:
m_Ints: []
m_Floats:
- Vector1_c9f2135c9d254951b22c018d295f8558: 0.003
- _blurOffset: 0.047
- _blurOffset: 0.35
m_Colors: []
m_BuildTextureStacks: []
--- !u!114 &268278646524644520

View File

@@ -71,6 +71,8 @@ namespace Views{
this.ViewConnector.CloseView ();
if (RoomManager.Instance.PartIndex < 3)
{
Destroy (MapContent.Instance.ScenePart.gameObject);
MapContent.Instance.ScenePart = null;
RoomManager.Instance.PartIndex++;
GameEventDefine.ChangeGameFsm.SendMessage (GameState.StartGame);
}