phaser4-rex-plugins
Version:
31 lines (26 loc) • 634 B
JavaScript
export default {
getSelectedChess1() {
return this.mainState.selectedChess1;
},
getSelectedChess2() {
return this.mainState.selectedChess2;
},
selectChess1(chess) {
this.mainState.selectChess1(chess);
return this;
},
selectChess2(chess) {
this.mainState.selectChess2(chess);
return this;
},
pickChess(chess) {
this.mainState.pickChess(chess);
return this;
},
setInputEnable(enable) {
if (this.input) {
this.input.setEnable(enable);
}
return this;
},
}