trying to get a door to open when two trigger volumes are activated,Regarding an OnTriggerEnter
,This is my first time posting here and am not sure what I am doing wrong with my code. I have 2 pressure plates that have a trigger volume on it and I am trying to open a door when both the pressure plates are active. The code for the Pressure plate works when I use them. The issue I am having is to have the door check to see if the two conditions for the pressure pads are true.
With that code showing what I am trying to do is this: I want the door to be able to reference the above code so that it can check for whether or not the condition of the pressure plate is true.
The thing I am not understanding is how to get the door script to count up when a pressure plate is activated. I know that in the door opening script I don't think I need an function called OnTriggerEnter(collider other) I am not sure as to what it is that I need there so that I can get the door to check the conditions of the pressure plates. Can anyone help me figure this out?