https://github.com/samme/phaser-group-signals
Adds onChildAdded, onChildKilled, onChildRemoved, onChildRevived
https://github.com/samme/phaser-group-signals
Last synced: 5 months ago
JSON representation
Adds onChildAdded, onChildKilled, onChildRemoved, onChildRevived
- Host: GitHub
- URL: https://github.com/samme/phaser-group-signals
- Owner: samme
- Created: 2016-09-21T03:15:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T01:54:35.000Z (over 9 years ago)
- Last Synced: 2025-11-27T09:31:47.134Z (7 months ago)
- Language: CoffeeScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Use
---
```javascript
group.onChildAdded.add(function (child, parent){
// {child} was added to {parent}
});
group.onChildRemoved.add(function (child, prevParent){
// {child} was removed from {prevParent}
});
group.onChildKilled.add(function (child, parent){
// {child} was killed
});
group.onChildRevived.add(function (child, parent){
// {child} was revived
});
```