private void gunBonus(GameObject player) { Bonus gun = player.GetComponent <PlayerShooting>() .GunBonus.GetComponent <Bonus>(); gun.Clip(quantityCartriges); gun.RegimeChange(ChargeName); Destroy(gameObject); }