void OnTriggerEnter2D(Collider2D collision2D) { if (collision2D.gameObject.CompareTag("Metal")) { Destroy(this.gameObject); Debug.Log("Oi"); pontos.GanhaPontos(); } if (collision2D.gameObject.CompareTag("Papel")) { Destroy(this.gameObject); Debug.Log("Oi"); pontos.PerdePontos(); } if (collision2D.gameObject.CompareTag("Organico")) { Destroy(this.gameObject); Debug.Log("Oi"); pontos.PerdePontos(); } if (collision2D.gameObject.CompareTag("Plastico")) { Destroy(this.gameObject); Debug.Log("Oi"); pontos.PerdePontos(); } if (collision2D.gameObject.CompareTag("Vidro")) { Destroy(this.gameObject); Debug.Log("Oi"); pontos.PerdePontos(); } }