cloakedninjas Posted July 28, 2015 Share Posted July 28, 2015 Is it good practice to do the following: this.events.onBloomOver = new Phaser.Signal();; Or should the events property be left for Phaser's own events only? And if it's ok - Since I'm using Typescript, how can I get around Webstorm complaining about Unresolved variable onBloomOver - some sort of Interface? Link to comment Share on other sites More sharing options...
drhayes Posted July 28, 2015 Share Posted July 28, 2015 Speaking from the JavaScript side of things, I don't see a problem with it. But we're more loosey-goosey with our dynamic-ness and weakly-typed-ness. ( ; I guess I'd be more worried that I'd override a built-in Phaser event if a new event shows up there in a Phaser upgrade. Link to comment Share on other sites More sharing options...
Recommended Posts