36 lines
957 B
C#
36 lines
957 B
C#
using Gameplay.LoadingExecutor;
|
|
using Framework.State;
|
|
using Framework.UI;
|
|
|
|
namespace Gameplay.Game
|
|
{
|
|
public class GameStateStart : IState
|
|
{
|
|
private string _windowPos;
|
|
private bool _stayTuned;
|
|
|
|
public GameStateStart(string windowPos, bool stayTuned = false)
|
|
{
|
|
_windowPos = windowPos;
|
|
_stayTuned = stayTuned;
|
|
}
|
|
|
|
public void OnEnter()
|
|
{
|
|
LoadingExecutorManager.Instance.ExecuteLoading(
|
|
new GameStartLoadingExecutor(_windowPos, _stayTuned));
|
|
}
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
{
|
|
}
|
|
|
|
public void OnExit()
|
|
{
|
|
UIManager.Instance.CloseAllUI(true);
|
|
GfxManager.Instance.ReturnGfxObj("Effect_MainCharacter", true);
|
|
GfxManager.Instance.ReturnGfxObj("Effect_SelectSequin", true);
|
|
GfxManager.Instance.ReturnGfxObj("Effect_Sequin", true);
|
|
}
|
|
}
|
|
} |