public PlayerController GetPlayerControllerMock(IPlayerMotorController movementController) { var controller = Substitute.For <PlayerController>(); controller.SetPlayerMovementController(movementController); return(controller); }
public PlayerController GetPlayerControllerMock(IAnimatorController animatorController, IPlayerMotorController movementController, GridController gridController) { var controller = Substitute.For <PlayerController>(); controller.SetAnimatorController(animatorController); controller.SetPlayerMovementController(movementController); controller.SetGridController(gridController); movementController.IsMoving(Vector3.zero, Quaternion.identity).ReturnsForAnyArgs(true); return(controller); }