Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (m_Input.moveVector.magnitude > 1)
- {
- m_Input.moveVector = m_Input.moveVector.normalized;
- }
- m_RigidBody2D.velocity = m_Input.moveVector * moveSpeed;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement