mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 15:51:10 +00:00
feat: add random auto teleport state
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Assets._Project.Develop.Runtime.Utilities.StateMachineCore;
|
||||
|
||||
namespace _Project.Develop.Runtime.Utils.InputManagement.States
|
||||
{
|
||||
public class PlayerInputState : State
|
||||
{
|
||||
private readonly IPlayerInput _playerInput;
|
||||
|
||||
public PlayerInputState(IPlayerInput playerInput)
|
||||
{
|
||||
_playerInput = playerInput;
|
||||
}
|
||||
|
||||
public override void Enter()
|
||||
{
|
||||
base.Enter();
|
||||
_playerInput.Enable();
|
||||
}
|
||||
|
||||
public override void Exit()
|
||||
{
|
||||
_playerInput.Disable();
|
||||
base.Exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user