Код: Выделить всё
// Alright this is basic walking nice
float hInput = Input.GetAxis("Horizontal");
float vInput = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(hInput, 0f, vInput);
rb.MovePosition(rb.position + movement * Time.deltaTime);
Подробнее здесь: https://stackoverflow.com/questions/790 ... ocal-space
Мобильная версия