Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.InputSystem;
- public class PlayerInputSystem : MonoBehaviour
- {
- public Vector2 movement;
- public void OnMove(InputAction.CallbackContext context)
- {
- movement = context.ReadValue<Vector2>();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement