2024-06-12 15:01:54 +08:00
|
|
|
using Gameplay.LoadingExecutor;
|
|
|
|
using Framework.State;
|
|
|
|
using Framework.UI;
|
|
|
|
|
|
|
|
namespace Gameplay.Game
|
|
|
|
{
|
|
|
|
public class GameStateStart : IState
|
|
|
|
{
|
|
|
|
private string _windowPos;
|
|
|
|
|
|
|
|
public GameStateStart(string windowPos)
|
|
|
|
{
|
|
|
|
_windowPos = windowPos;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnEnter()
|
|
|
|
{
|
|
|
|
LoadingExecutorManager.Instance.ExecuteLoading(
|
|
|
|
new GameStartLoadingExecutor(_windowPos));
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnExit()
|
|
|
|
{
|
|
|
|
UIManager.Instance.CloseAllUI(true);
|
2024-06-18 17:53:12 +08:00
|
|
|
//TODO 特效
|
2024-06-12 15:01:54 +08:00
|
|
|
GfxManager.Instance.ReturnGfxObj("gfx_character", true);
|
|
|
|
GfxManager.Instance.ReturnGfxObj("gfx_selectlevel", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|