DelayNoMore/frontend/assets/scripts/SimplePressToGoDialog.js
2022-09-20 23:52:55 +08:00

27 lines
376 B
JavaScript

cc.Class({
extends: cc.Component,
properties: {
},
start() {
},
onLoad() {
},
update(dt) {
},
dismissDialog(postDismissalByYes, evt) {
const self = this;
const target = evt.target;
self.node.parent.removeChild(self.node);
if ("Yes" == target._name) {
// This is a dirty hack!
postDismissalByYes();
}
}
});