public void Moveright(){
RB2D.AddForce (Vector3.right*moveSpeed);
moveVelocity = moveSpeed;
}
this is the code i used to let the object move but the object only moves little by little and i have to continuously press the button…how do i make it move with just pressing the button…