Код: Выделить всё
void PlayerMover()
{
_step = _speed * _speedMultiplier * Time.deltaTime;
PlayerBoost();
float vertical = Input.GetAxis("Vertical");
PlayerRotation();
Vector3 direction = new Vector3(-vertical, 0, 0);
transform.TransformDirection(Vector3.forward);
transform.position += direction * _step;
}
дополнительные символы, чтобы удовлетворить минимальный лимит в 220 символов
Подробнее здесь: https://stackoverflow.com/questions/787 ... bjects-new