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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0efa0cca886c45e295d4adcb82d59f8b
|
||||
timeCreated: 1770556305
|
||||
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cac35b3aedd43b1959f82e36c30ac47
|
||||
timeCreated: 1770556297
|
||||
Reference in New Issue
Block a user