38 lines
914 B
C#
38 lines
914 B
C#
using Code.App.StateMachine;
|
|
using Code.Input;
|
|
using Code.Scenes;
|
|
using Code.StateMachine;
|
|
|
|
namespace Code.App.AppStates
|
|
{
|
|
//TODO: поменяно для теста
|
|
public class MovementDevState: BaseState<AppStateMachineContext>
|
|
{
|
|
public MovementDevState(AppStateMachineContext context) : base(context)
|
|
{
|
|
}
|
|
|
|
public override void EnterState()
|
|
{
|
|
Context.SceneLoaderService.LoadScene((int)SceneIds.MovementDev, SceneLoaded);
|
|
Context.InputService.EnableMap(ActionMappings.Gameplay);
|
|
}
|
|
|
|
private void SceneLoaded()
|
|
{
|
|
|
|
base.EnterState();
|
|
}
|
|
|
|
public override void Tick()
|
|
{
|
|
}
|
|
|
|
public override void ExitState()
|
|
{
|
|
Context.InputService.DisableMap(ActionMappings.Gameplay);
|
|
|
|
base.ExitState();
|
|
}
|
|
}
|
|
} |