mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
21 lines
604 B
JavaScript
21 lines
604 B
JavaScript
|
/**
|
||
|
* The Events component is a collection of events fired by the parent game object and its components.
|
||
|
* @param parent The game object using this Input component
|
||
|
*/
|
||
|
Phaser.Events = function (sprite) {
|
||
|
|
||
|
this.parent = sprite;
|
||
|
this.onAddedToGroup = new Phaser.Signal;
|
||
|
this.onRemovedFromGroup = new Phaser.Signal;
|
||
|
this.onKilled = new Phaser.Signal;
|
||
|
this.onRevived = new Phaser.Signal;
|
||
|
this.onOutOfBounds = new Phaser.Signal;
|
||
|
|
||
|
this.onInputOver = null;
|
||
|
this.onInputOut = null;
|
||
|
this.onInputDown = null;
|
||
|
this.onInputUp = null;
|
||
|
this.onDragStart = null;
|
||
|
this.onDragStop = null;
|
||
|
|
||
|
};
|