The player must press the buttons and the character move one step forward, but did it in a jump.
using System.Collections.Generic;
using UnityEngine;
public class playerrr : MonoBehaviour
{
public void MoveUp()
{
transform.Translate(0f, 0f, 1f);
}
public void MoveLeft()
{
transform.Translate(-1f, 0f, 0f);
}
public void MoveRight()
{
transform.Translate(1f, 0f, 0f);
}
}
and the movement to the left and right must be done not by 90 degrees, but by about 40.