mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 15:51:10 +00:00
26 lines
575 B
C#
26 lines
575 B
C#
using Assets._Project.Develop.Runtime.Utilities.StateMachineCore;
|
|
|
|
namespace _Project.Develop.Runtime.Utils.InputManagement.States
|
|
{
|
|
public class UIInputState : State
|
|
{
|
|
private readonly IUIInput _uiInput;
|
|
|
|
public UIInputState(IUIInput uiInput)
|
|
{
|
|
_uiInput = uiInput;
|
|
}
|
|
|
|
public override void Enter()
|
|
{
|
|
base.Enter();
|
|
_uiInput.Enable();
|
|
}
|
|
|
|
public override void Exit()
|
|
{
|
|
_uiInput.Disable();
|
|
base.Exit();
|
|
}
|
|
}
|
|
} |