void Start() { localPlayer = this.gameObject; direction = localPlayer.transform.forward; controller.SetLocalPlayer(localPlayer); controller.SetSpeed(this.force); controller.SetRotationSpeed(this.rotationSpeed); }
public void SetUp() { networkControllerMock.Reset(); unityInputProxyMock.Reset(); unityPhysicsProxyMock.Reset(); movementCommandMock.Reset(); rotationCommandMock.Reset(); controller = new LocalMovementController(unityInputProxyMock.Object, networkControllerMock.Object, rotationCommandMock.Object, movementCommandMock.Object, unityPhysicsProxyMock.Object, unityDebugProxyMock.Object); controller.SetLocalPlayer(fakeLocalPlayer); controller.SetSpeed(30F); controller.SetRotationSpeed(40F); }