Ejemplo n.º 1
0
        public void PerformLocalMoveOnFixedUpdate_OnVerticalChange(float change)
        {
            // Given
            var fakeDirection = new Vector3(0, 0, change);

            // When
            controller.PerformLocalMoveOnFixedUpdate(fakeDirection);

            // Then
            var times = change != 0 ? Times.Once() : Times.Never();

            movementCommandMock.Verify(x => x.Execute(It.IsAny <MovementCommandPayload>()), times);
            unityPhysicsProxyMock.Verify(x => x.Raycast(It.IsAny <Vector3>(), It.IsAny <Vector3>(), It.IsAny <float>()), Times.Never);
        }
Ejemplo n.º 2
0
 void FixedUpdate()
 {
     controller.PerformLocalMoveOnFixedUpdate(direction);
 }