function OnControllerColliderHit(collision : ControllerColliderHit) {
if(collision.transform.tag == “stockpile”){
if(materials < maxmaterials){
materials = maxmaterials;
collision.gameObject.GetComponet(stockpile).amount = 0;
}
}
}
how come this wont access the other script?
it has to be with a charectercontroller