using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float MovementSpeed = 1;
public void Start()
{
}
public void Update()
{
Var movement = input.GetAxis(“Horizontal”);
transform.position += new Vector3(movement,0,0) * Time.deltaTime * MovementSpeed;
}
}
6568612–744712–PlayerMovement.cs (409 Bytes)