This is the script now:
using UnityEngine;
public class Player : MonoBehaviour
{
//double movSpeed=3.0;
//Input mov = Input.GetAxis(“Vertical”) * Time.deltaTime * movSpeed;
void Update ()
{
//transform.Translate(Vector3(0,0,mov));
//if (Input.GetKey (KeyCode.RightArrow)) {
transform.Translate(Vector3.forward * Time.deltaTime);
//rigidbody2D.transform.Translate (Vector3.forward * Time.deltaTime);
//}*/
}
}
I tried also the other things in the code but nothing is working in all cases i tried the object is keep falling down when i click the play button in unity.