Fix button action when user have activated

This commit is contained in:
Gregoire Parant 2020-11-01 11:49:09 +01:00
parent 74de2746c2
commit fcb7f364b6

View file

@ -474,6 +474,7 @@ export class GameScene extends ResizableScene implements CenterListener {
}else{
layoutManager.addActionButton('openWebsite', 'Clik on SPACE to open web site', () => {
coWebsiteManager.loadCoWebsite(newValue as string);
layoutManager.removeActionButton('openWebsite', this.userInputManager);
}, this.userInputManager);
}
});