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