Does anyone know what i did wrong?
Assets/Scripts/Ball.cs(42,14): error CS1061: Type UnityEngine.Component' does not contain a definition for
velocity’ and no extension method velocity' of type
UnityEngine.Component’ could be found. Are you missing an assembly reference?
void OnCollisionEnter2D (Collision2D collision){
Vector2 tweak = new Vector2 (Random.Range(0f, 0.2f), Random.Range (0f,0.2f));
if (hasStarted && collision.gameObject.tag != "breakable") {
AudioSource audio = GetComponent<AudioSource> ();
audio.Play ();
rigidbody2D.velocity += tweak;
}