private void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.CompareTag(playerOneTag)) { roundManager.AddScore(playerOneTag, Points); } if (collision.gameObject.CompareTag(playerTwoTag)) { roundManager.AddScore(playerTwoTag, Points); } if (collision.gameObject.CompareTag(playerOneTag) || collision.gameObject.CompareTag(playerTwoTag)) { Destroy(gameObject); } }