https://playcanvas.com/editor/code/529780?tabs=10861152,10800992
This script is doing something rather strange. It’s supposed to disable my Menu UI elements when start gets called. However, it isn’t doing that and when I check the debugger after stepping through a break point on the line that disables the elements, an error appears saying it cannot read the enabled property. I have 2 breakpoints when this occurs, the first is on the disable UI line (48) in this script, the second is on the stop propagation line (29) in the menu script.