public void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.tag == "Delete") { Destroy(gameObject); gamesManager.IncreaseScore(); } if (collision.gameObject.tag == "Player") { gamesManager.gamesGameOver = true; Destroy(gameObject); } }