public class player : MonoBehaviour {
protected float jump_speed = 5.0f;
Rigidbody r;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(0)) {
r = GetComponent<Rigidbody>();
this.r.velocity = Vector3.up * this.jump_speed;
}
}
}