mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 11:48:56 +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();
|
||
|
}
|
||
|
}
|
||
|
});
|