- Added multiplayer functions
- Only active user can roll the dice - Only active user can select answers - Card will be destroyed if active user selects answer
This commit is contained in:
@@ -56,13 +56,6 @@ function Button(default_color, hover_color, select_color, width, height, x, y, t
|
||||
this.graphics.buttonMode = true;
|
||||
this.graphics.defaultCursor = 'pointer';
|
||||
this.graphics.on('click', function () {
|
||||
if (_this.button_is_answer) {
|
||||
if (_this.selected === true) {
|
||||
_this.unSelectButton();
|
||||
} else {
|
||||
_this.selectButton();
|
||||
}
|
||||
}
|
||||
click();
|
||||
});
|
||||
this.graphics.on('mouseover', function () {
|
||||
|
||||
Reference in New Issue
Block a user