AkiraPixelWind/Assets/Scripts/Main/Procedure/ProcedureSplash.cs
2022-12-29 18:20:40 +08:00

28 lines
892 B
C#

using Axibug.Runtime;
using ProcedureOwner = Axibug.Fsm.IFsm<Axibug.Procedure.IProcedureManager>;
namespace Game
{
public class ProcedureSplash : ProcedureBase
{
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
{
base.OnUpdate(procedureOwner, elapseSeconds, realElapseSeconds);
if (AppEntry.Base.EditorResourceMode)
{
// 编辑器模式
Log.Info("游戏模式:编辑器模式.");
//procedureOwner.SetData<VarString>("message", "编辑器模式");
ChangeState<ProcedureInitSystem>(procedureOwner);
}
else
{
// 热更新模式
Log.Info("游戏模式:热更新模式.");
ChangeState<ProcedureCheckVersion>(procedureOwner);
}
}
}
}