I want to discuss a situation and need a solution. i am confused how to use list variables with gameobjects and bool values.
i have a building and some room doors are open and some doors are closed. i want to do that if "on player enter" trigger the door is already open then close the door and if not then open the door. i add local variable of bool on each door with name "IsOpen". if player enter it change its value true to false or vice versa. but i want to make the list of doors and if i am near a door "IsOpen" bool condition works according to the GameObject. hope you understand what i am trying to say.
how to Get the name of Door and open or close it accordingly.
Customer support service by UserEcho