mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-27 12:08:21 +00:00
27 lines
376 B
JavaScript
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();
|
|
}
|
|
}
|
|
});
|