im trying to collide with an object and add gold to my money system script and destroy it it is adding the gold now i need it to go away.
heres my script so far .
var gold : int = 20;
function OnControllerColliderHit(hit: ControllerColliderHit){
if(hit.gameObject.tag == "Gold" ){
moneysystem.Gold =++ gold ;
Destroy(other.gameObject);
}
}