Базовая инфраструктура

This commit is contained in:
ThomasCharester committed 2025-10-14 09:47:56 +03:00
1 parent 2e0dc15beb
commit b5e28c7abb
117 files changed
+2068 -2031

No files matched your search

@@ -0,0 +1,38 @@
using Code.App.StateMachine;
using Code.Input;
using Code.Scenes;
using Code.StateMachine;
using UnityEngine;
namespace Code.App.AppStates
{
public class GameplayState : BaseState<AppStateMachineContext>
{
public GameplayState(AppStateMachineContext context) : base(context)
{
}
public override void EnterState()
{
Context.SceneLoaderService.LoadScene((int)SceneIds.Gameplay, 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();
}
}
}