I am using a Playcanvas project inside an Angular application.
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 ?