/**
*   分发事件到事件流中。
*   this.node.dispatchEvent(new cc.Event.EventCustom("name",是否向上传递))
*   true:向上传递,传递到父节点。
*   false:向下传递
*/
var e = new cc.Event.EventCustom("事件名称 string",true)
e.detail = {
  name:" data"
}
this.node.dispatchEvent(e)

相关文章:

  • 2021-11-06
猜你喜欢
  • 2022-01-14
  • 2021-04-30
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案