public static void Reset() { ServiceLocator.SetLocatorProvider(null); if (_root != null) { _root.Dispose(); } _root = new UnityContainer(); _latch.Reset(); }
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(); } }