private void OnCollisionEnter(Collision collision) { if (collision.collider.tag == "Jogador") { Arma arma = controlaArma.gameObject.GetComponentInChildren <Arma>(); arma.EncherMunicao(); } }
private void OnCollisionEnter(Collision collision) { if (collision.collider.tag == "Jogador") { Arma arma = controlaArma.gameObject.GetComponentInChildren <Arma>(); arma.EncherMunicao(); } }