Press an in-game switch to open a door - help?

I’m making a game where you pick up a tv remote - then the door opens and the material changes on the tv screen. Can I have some help please?

Look up triggers.

Activate the trigger via scripting.

If you have no idea how to do that… I’d suggest doing some tutorials and scripting tutorials.

Use a raycast towards the object that should trigger the door, then alter a boolean or execute a function which opens the door.

private var open : boolean = false;
function AlterDoor () {
    open = !open;
    if (open) {
        Animation.Play("Open");
    } else {
        Animation.Play("Close");
    }
}