private void OnCollisionEnter(Collision collision) { if (collision.collider.gameObject.CompareTag("Ball")) { setcolor.health--; setcolor.UpdateColorAndHealth(); scoreboard.IncrementScore(); } }