private void OnTriggerEnter2D(Collider2D other) { Debug.Log(other.name); if (other.tag.Equals("Player")) { player player = other.GetComponent <player>(); AudioSource.PlayClipAtPoint(_clip, Camera.main.transform.position, 1f); if (player != null) { if (powerID == 0) { //player.cantripleShot = true; player.IniciarTiroTriplo(); } else if (powerID == 1) { player.IniciarSpeedbostActive(); } else if (powerID == 2) { player.AbilitarShields(); } } //StartCoroutine(player.PararTiroTriplo()); Destroy(this.gameObject); } }