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 { 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); } } }