i need some help here, i am still stuck on this project and it seems like every script i write there is a new issue everytime i launch my game i get this error
Uncaught TypeError: Cannot read properties of null (reading ‘resource’)
here is the link to my code and game editor
https://playcanvas.com/editor/code/1261503?tabs=198161379&line=23&col=30&error=true
https://playcanvas.com/editor/scene/2083474
please help!!!