вот скрипт:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float speed;
private void Update ()
(
transform.Translate(transform.right * speed);
)
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float speed;
private void Update ()
(
transform.Translate(transform.right * speed);
)
}