raksa / phaser-dragonbones

Phaser plugin for dragonbones
17 stars 5 forks source link

add events as Phaser Signals #4

Open mattcolman opened 7 years ago

mattcolman commented 7 years ago

pretty sure this works, although I've never written typescript before.

I tried to compile my code to test but get the error Only 'amd' and 'system' modules are supported alongside --outFile

This code allows to use dragonbones events. e.g. sprite.events.onDBComplete.add(() => { // do something })