// Start is called before the first frame update private void OnCollisionEnter(Collision collision) { if (collision.gameObject.name == "Ball") { MyManger.Instance().block_break(); Destroy(gameObject); } }
// Start is called before the first frame update private void OnCollisionEnter(Collision collision) { if (collision.gameObject.name == "Floor") { MyManger.Instance().Game_End(); Destroy(gameObject); } }