Thanks
!
Quite a lot of my project broke with the update - I notice that the method I used to initialize early Javascript functions no longer works. Would be really good to be able to get either a way of running code on startup without the need to create a âscriptâ per se or to be able to specify files to be loaded before any of the other scripts are executed.
For instance my pc.script.create(âxxxâ, function(uuu) {}) now runs before all of my JS is loaded. Iâve got a workaround - but I have a function I would prefer to execute inside that script around my script constructor to create a state machine. This no longer works so Iâve bodged it together by screwing with proto but ugly hack.
Before it looked like var MyScript = pc.createStateMachine(function MyScriptConstructor(entity) {});
But that no longer works as the pc.extend isnât running before the call back to execute the pc.script.create.