As mentioned you used the code on Start method. If you want to use the touch to move the ball only one time, use a bool perhaps. Declare this:
public class movingBall : MonoBehaviour {
bool gameStart;
void Start(){
gameStart=false;
}
void Update()
{
if (Input.touchCount >=1)
{
if (gameStart){
//game already started, do stuff with touch action in game
}else{
//game not started yet, move the ball once
gameStart=true;
GetComponent<Rigidbody2D> ().AddForce (new Vector2 (1f, 0.5f) * force);
}
}
}
}
For a game over, just remember to set it false again.
If you gonna use the touch input ONLY for start you can do like:
public class movingBall : MonoBehaviour {
bool gameStart;
void Start(){
gameStart=false;
}
void Update()
{
if (!gameStart){
if (Input.touchCount >=1) {
gameStart=true;
GetComponent<Rigidbody2D> ().AddForce (new Vector2 (1f, 0.5f) * force);
}
}
}
}