using UnityEngine;
class Player : MonoBehaviour
{
public float PlayerSpeed = 0.2f;
void Start()
{
Application.targetFrameRate = 60;
}
void Update()
{
if (Input.GetKey(KeyCode.LeftArrow))
{
transform.Translate(-PlayerSpeed, 0, 0);
}
if (Input.GetKey(KeyCode.RightArrow))
{
transform.Translate(PlayerSpeed, 0, 0);
}
}
}