private void HandleIntput() { if (_supervisor.CurrenntCommand != null) { if (_supervisor.CurrenntCommand.GameObject != null) { _detectedCollider = _supervisor.CurrenntCommand.GameObject.GetComponent <Collider2D>(); _interaction = _supervisor.CurrenntCommand.GameObject.GetComponent <IInteraction>(); } if (!_locomotionState2DSettings.MoveOnInteractionOnly || (_locomotionState2DSettings.MoveOnInteractionOnly && _interaction != null)) { _destination.x = _supervisor.CurrenntCommand.WorldPosition.x; _flipLath.Reset(); } _supervisor.Consume(); } }