Hi,
I am using a Playcanvas project inside an Angular application.
The game is loaded with all the code from the index.html + JavaScript files (loading.js etc).
I have a script file for an entity in my game.
When i came back on the game screen twice, i have this error :
“Uncaught SyntaxError: Identifier ‘DistributeCoins’ has already been declared”
DistributeCoins is a const inside my script. Is it possible to not preloading twice assets ?