diff options
Diffstat (limited to 'Assets/Scripts/GameControllerInput.cs')
| -rw-r--r-- | Assets/Scripts/GameControllerInput.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Assets/Scripts/GameControllerInput.cs b/Assets/Scripts/GameControllerInput.cs index ff29c12..7472463 100644 --- a/Assets/Scripts/GameControllerInput.cs +++ b/Assets/Scripts/GameControllerInput.cs @@ -24,4 +24,11 @@ public class GameControllerInput : MonoBehaviour bool isGrabbing = value > 0.5f; _playerControl.grabbing = isGrabbing; } + + public void OnBoost(InputAction.CallbackContext context) + { + float value = context.ReadValue<float>(); + bool isBoost = value > 0.5f; + _playerControl.boosting = isBoost; + } } |
