Skip to content

Instantly share code, notes, and snippets.

View lewa-j's full-sized avatar

Alexey lewa-j

View GitHub Profile
void Move()
{
Vector3 newPos = transform.position;
float TmpMoveSens = PlayerMoveSens * Time.deltaTime;
newPos += (transform.forward*Input.GetAxis("Vertical")) * TmpMoveSens;
newPos += (transform.right*Input.GetAxis("Horizontal")) * TmpMoveSens;