void OnCollisionEnter(Collision collision) { if (collision.collider.tag == "Obstacle") { // Debug.Log("We hit object " + collision); Instantiate(shatter, collision.gameObject.transform.position, collision.gameObject.transform.rotation); Destroy(collision.gameObject); score.collide(); if (DATA.Infinite == false) { lives.DeductLife(); } } }