Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isMoving;
- void OnEnable()
- {
- moveAction.started += OnMoveStarted;
- moveAction.canceled += OnMoveCanceled;
- }
- void OnMoveStarted(InputAction.CallbackContext ctx) => isMoving = true;
- void OnMoveCanceled(InputAction.CallbackContext ctx) => isMoving = false;
- void Update()
- {
- if (isMoving)
- {
- lĂ tu bouge comme tu veux avec le rb ou char controller ou autre
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment