I wrote this code to make my 2d character move but inside of unity it does not show me my movement Speed
using UnityEngine;
public float MovementSpeed = 1;
public class Character2dMovement : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
void Update()
{
var movement = Input.GetAxis("Horizontal");
Transform.position += new Vector3(movement,0,0) * Time.deltaTime * MovementSpeed;
}
}
Please Help i am trying to finish my first game