void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Ball" || other.gameObject.tag == "Extra Ball") { scoreManager.AddDiamondStarCount(1); gameManager.bricksInScene.Remove(this.gameObject); this.gameObject.SetActive(false); } }