OK. How about this line then? GameObject DoorOpen; //Create a GameObject variable for my door I double checked and that line IS in your code. I'm simply reinforcing the point that Kio was trying to make -- obvious comments actually make code harder to read, not easier.
first off - your comments do more harm than help float speed = 20 // set speed to 20; well that is kinda obvious isnt it? the best code is code who doesnt even need comments... to your problem: GameObject.Find("Door_L") <- returns the first gameobject it finds with the name, in your case it seems to find the one where you…
You're saying that if you returned to this code months later: "float speed = 20 // set speed to 20;" You wouldn't be able to figure out what it's doing without the comment?