MY CODE
the error readz
An object reference is required to access non-static member `UnityEngine.Rigidbody2D.velocity’
`using UnityEngine;
using System.Collections;
public class PLAYER_CONTROLLER : MonoBehaviour {
public float moveSpeed;
public float jumpHeight;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown (KeyCode.Space)){
Rigidbody2D.velocity = new Vector2(0,jumpHeight);
}
}
}
`