Create action button
This commit is contained in:
parent
8a687f40cb
commit
74de2746c2
5 changed files with 100 additions and 10 deletions
|
@ -77,4 +77,11 @@ export class UserInputManager {
|
|||
return event;
|
||||
});
|
||||
}
|
||||
|
||||
addSpaceEventListner(callback : Function){
|
||||
this.Scene.input.keyboard.addListener('keyup-SPACE', callback);
|
||||
}
|
||||
removeSpaceEventListner(callback : Function){
|
||||
this.Scene.input.keyboard.removeListener('keyup-SPACE', callback);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue