You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
22
Assets/Scripts/Game/FsmNode/GameInit.cs
Normal file
22
Assets/Scripts/Game/FsmNode/GameInit.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Framework.FSMLite;
|
||||
using Framework.UI;
|
||||
using Game.Data;
|
||||
using Views;
|
||||
|
||||
namespace Game.FsmNode
|
||||
{
|
||||
public class GameInit : StateMachine<GameState>
|
||||
{
|
||||
protected override void OnEnter (params object[] args)
|
||||
{
|
||||
//初始化数据层
|
||||
var data = RoomGlobalData.Create (false);
|
||||
RoomManager.Instance.RoomGlobalData = data;
|
||||
}
|
||||
|
||||
protected override void OnExit ()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user