protected new void Update() { var input = Vector2.zero; if (!disableControl) { input = ReadInput(); } wheelChairDrive.DriveWheels(input, true); }
// Update is called once per frame void Update() { /* * float wheel0Input = Input.GetAxis("Horizontal"); * float wheel1Input = Input.GetAxis("Vertical"); * wheelChairDrive.DriveWheels(wheel0Input, wheel1Input); */ wheelChairDrive.DriveWheels(vjHandler.InputDirection, true); // Debug.Log("WheelChairControls: " + vjHandler.InputDirection); }