using UnityEngine;
using System.Collections;

public class movePla : MonoBehaviour {
	public int movingDis = 0;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetMouseButton(0)) {
			Rigidbody2D rig = this.GetComponent<Rigidbody2D> ();
			rig.AddForce (new Vector2 (movingDis, 0));
			Debug.Log ("hi");
		} 
	}
}
