You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
27
Assets/Scripts/Game/FsmNode/GamePart.cs
Normal file
27
Assets/Scripts/Game/FsmNode/GamePart.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user