using System.Collections;using System.Collections.Generic;using UnityEngine;public class PlayerMovement : MonoBehaviour{ [SerializeField] private float _speed = 1f; void Start() { } void Update() { var direction = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); transform.Translate(direction * _speed * Time.deltaTime); }}