Skip to content

Commit c1a3421

Browse files
authored
Update README.md
1 parent 92095c9 commit c1a3421

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ After installing the package, you can use the custom input system in your projec
2525

2626
```csharp
2727
using UnityEngine;
28-
using UnityEngine.InputSystem;
2928

3029
public class Example : MonoBehaviour
3130
{
3231
void Update()
3332
{
34-
if (InputSystem.GetButtonDown("Jump"))
33+
if (GameInput.GetButtonDown("Jump"))
3534
{
3635
Debug.Log("Jump button pressed");
3736
}
3837

39-
Vector2 move = InputSystem.GetAxis("Move");
38+
Vector2 move = GameInput.GetAxis("Move");
4039
Debug.Log("Move axis: " + move);
4140
}
4241
}

0 commit comments

Comments
 (0)