private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Chave1") { pontuacao.AcaoChave1(); Destroy(other.gameObject); } if (other.gameObject.tag == "Chave2") { pontuacao.AcaoChave2(); Destroy(other.gameObject); } if (other.gameObject.tag == "Chave3") { pontuacao.AcaoChave3(); Destroy(other.gameObject); } if (other.gameObject.tag == "Ferpa") { pontuacao.AcaoFerpa(); } if (other.gameObject.tag == "Porta") { pontuacao.AcaoPorta(); } }