2024-06-12 15:01:54 +08:00
|
|
|
using Gameplay.LoadingExecutor;
|
|
|
|
using Framework.State;
|
|
|
|
using Framework.UI;
|
|
|
|
|
|
|
|
namespace Gameplay.Game
|
|
|
|
{
|
|
|
|
public class GameStateStart : IState
|
|
|
|
{
|
2024-06-27 15:40:40 +08:00
|
|
|
private bool _stayTuned;
|
2024-06-12 15:01:54 +08:00
|
|
|
|
2024-07-18 20:01:43 +08:00
|
|
|
public GameStateStart( bool stayTuned = false)
|
2024-06-12 15:01:54 +08:00
|
|
|
{
|
2024-06-27 15:40:40 +08:00
|
|
|
_stayTuned = stayTuned;
|
2024-06-12 15:01:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public void OnEnter()
|
|
|
|
{
|
|
|
|
LoadingExecutorManager.Instance.ExecuteLoading(
|
2024-07-18 20:01:43 +08:00
|
|
|
new GameStartLoadingExecutor(_stayTuned));
|
2024-06-12 15:01:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnExit()
|
|
|
|
{
|
|
|
|
UIManager.Instance.CloseAllUI(true);
|
2024-06-25 15:59:03 +08:00
|
|
|
GfxManager.Instance.ReturnGfxObj("Effect_MainCharacter", true);
|
|
|
|
GfxManager.Instance.ReturnGfxObj("Effect_SelectSequin", true);
|
|
|
|
GfxManager.Instance.ReturnGfxObj("Effect_Sequin", true);
|
2024-06-12 15:01:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|