mirror of
https://github.com/Amterasu/cocos-vuecli-demo.git
synced 2025-11-04 21:35:44 +00:00
init
This commit is contained in:
20
cocosTem/assets/Script/emitNode.js
Normal file
20
cocosTem/assets/Script/emitNode.js
Normal file
@@ -0,0 +1,20 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
|
||||
},
|
||||
|
||||
onLoad: function () {
|
||||
this.node.on(
|
||||
cc.Node.EventType.TOUCH_END,
|
||||
e => {
|
||||
e.stopPropagation();
|
||||
if (window.eventBus) {
|
||||
window.eventBus.emit('WEB_MSG_TYPE.SELECT_NODE', e.currentTarget);
|
||||
}
|
||||
},
|
||||
this
|
||||
);
|
||||
},
|
||||
});
|
||||
9
cocosTem/assets/Script/emitNode.js.meta
Normal file
9
cocosTem/assets/Script/emitNode.js.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
Reference in New Issue
Block a user