34 lines
857 B
C#
34 lines
857 B
C#
using Gameplay.LoadingExecutor;
|
|
using Framework.State;
|
|
using Framework.UI;
|
|
|
|
namespace Gameplay.Game
|
|
{
|
|
public class GameStateStart : IState
|
|
{
|
|
private bool _stayTuned;
|
|
|
|
public GameStateStart( bool stayTuned = false)
|
|
{
|
|
_stayTuned = stayTuned;
|
|
}
|
|
|
|
public void OnEnter()
|
|
{
|
|
LoadingExecutorManager.Instance.ExecuteLoading(
|
|
new GameStartLoadingExecutor(_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);
|
|
}
|
|
}
|
|
} |