You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33084e8a307b49648b468d7ae4123115
|
||||
timeCreated: 1717040492
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72a83c4ee54e44ea8fd35c8f522ad3b7
|
||||
timeCreated: 1717040477
|
||||
@@ -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 ()
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user