hi all,
i have been playing around with this script for a longtime and it still doesn’t work, what is suppose to happen is my player collides with the trigger, “B” is pressed then the CHILD of the object to hide, here is myscript
function OnTriggerStay(trigger : Collider) {
if((trigger.gameObject.tag == "Player") && Input.GetKeyDown(KeyCode.B)) {
renderer.enabled = false;
}
}
how would i change this script so that it hides the child object?
any help/ amendments would be great
thanks