code lines for c#
FirstChoice = Convert.ToInt32(Console.ReadLine()); this line of code makes string be read as an intiger
code lines for unity
if (Input.GetKeyDown(KeyCode.D))
{
cubeRigidbody.AddForce(Vector3.right * force);
}
this code uses the rigid body to move an object in the scene when play is pressed this requires you to add the rigid body to the script module and also requires you to enter a force to around 200 but 500 looks really smooth