8.30
This commit is contained in:
@@ -68,6 +68,14 @@ namespace SepCore.Procedure
|
||||
() =>
|
||||
{
|
||||
_loadedFlag[LubanTablesFlag] = true;
|
||||
|
||||
// Load save data; create a new game if no save exists
|
||||
GameEntry.Save.Load();
|
||||
if (!GameEntry.Save.HasSave && !GameEntry.Save.IsReady)
|
||||
{
|
||||
GameEntry.Save.CreateNewGame();
|
||||
}
|
||||
|
||||
Log.Info("Load Luban data tables OK.");
|
||||
},
|
||||
errorMessage =>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using GameFramework.Fsm;
|
||||
using GameFramework.Procedure;
|
||||
using SepCore.Definition;
|
||||
using SepCore.UI;
|
||||
|
||||
namespace SepCore.Procedure
|
||||
@@ -15,15 +16,7 @@ namespace SepCore.Procedure
|
||||
{
|
||||
base.OnEnter(procedureOwner);
|
||||
|
||||
DialogParams context = new DialogParams()
|
||||
{
|
||||
Message = "This is a test dialog.",
|
||||
Title = "This is a test dialog.",
|
||||
Mode = 2,
|
||||
ConfirmText = "确认",
|
||||
CancelText = "取消",
|
||||
};
|
||||
GameEntry.UI.OpenDialog(context);
|
||||
GameEntry.UI.OpenUIForm(UIFormType.LobbyForm);
|
||||
}
|
||||
|
||||
protected override void OnUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds,
|
||||
@@ -34,6 +27,8 @@ namespace SepCore.Procedure
|
||||
|
||||
protected override void OnLeave(IFsm<IProcedureManager> procedureOwner, bool isShutdown)
|
||||
{
|
||||
GameEntry.UI.CloseAllLoadedUIForms();
|
||||
|
||||
base.OnLeave(procedureOwner, isShutdown);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user