updat core

This commit is contained in:
2024-10-21 16:20:37 +08:00
parent afc7f2d1bc
commit 93fe7b4d04
33 changed files with 1381 additions and 478 deletions

View File

@@ -1,27 +0,0 @@
using System;
using Framework.Audio;
using Framework.FSMLite;
using Framework.UI;
using Game.EventDefine;
using IcecreamView;
using UnityEngine;
using Views;
namespace Game.FsmNode
{
public class GamePart : StateMachine<GameState>
{
private int _lastPartLayer = -1;
private int _lastLevelIndex = -1;
protected override void OnEnter (params object[] args)
{
AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
}
protected override void OnExit ()
{
UIManager.Instance.CloseViewWithGroup (this.GetType ().FullName);
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 33084e8a307b49648b468d7ae4123115
timeCreated: 1717040492

View File

@@ -1,37 +0,0 @@
using System;
using Framework.Audio;
using Framework.FSMLite;
using Framework.UI;
using Game.EventDefine;
using Game.Manager;
using Views;
namespace Game.FsmNode
{
public class GameRelax : StateMachine<GameState>
{
protected override async void OnEnter (params object[] args)
{
AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
//如果是从游戏关卡选择中返回休息,不刷新商店
var isRefreshShop = this.stateMachineRunner.LastState != GameState.PartGame;
if (isRefreshShop)
{
RefreshShop ();
}
}
private void RefreshShop ()
{
if (this.stateMachineRunner.LastState != GameState.PartGame)
{
}
}
protected override void OnExit ()
{
UIManager.Instance.CloseViewWithGroup (this.GetType ().FullName);
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 72a83c4ee54e44ea8fd35c8f522ad3b7
timeCreated: 1717040477

View File

@@ -7,7 +7,7 @@ namespace Game.FsmNode
{
protected override void OnEnter (params object[] args)
{
this.stateMachineRunner.OpenState (GameState.RelaxGame);
this.stateMachineRunner.OpenState (GameState.StartGame);
}
protected override void OnExit ()

View File

@@ -13,11 +13,8 @@ namespace Game.FsmNode
protected override async void OnEnter (params object[] args)
{
AudioManager.Instance.PlayBGM(BgmAudio.NormalBgm , 0.65f);
GameEventDefine.ChangeGameFsm.SendMessage (GameState.PartGame , true);
GameEventDefine.ChangeGameFsm.SendMessage (GameState.FightGame , true);
UIManager.Instance.CloseLoading (null);
if (Account.Instance.AccountGameData.InitCardIds.Count > 0)
{
}
}
protected override void OnExit ()