/// <summary> /// Destroys the block on collision with a ball /// </summary> /// <param name="coll">Coll.</param> void OnCollisionEnter2D(Collision2D coll) { if (coll.gameObject.CompareTag("Ball")) { HUDScript.AddPoints(); Destroy(gameObject); } }