cc.Button.prototype._onTouchEnded = function (t) {
  cc.hb.audioMgr.playMusic("click", false);//播放音频
  if (this.interactable && this.enabledInHierarchy) {
    if (this._pressed) {
      cc.Component.EventHandler.emitEvents(this.clickEvents, t);
      this.node.emit("click", this);
    }
    this._pressed = !1;
    this._updateState();
    t.stopPropagation();
  }
};

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-06-23
  • 2021-08-14
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2021-04-18
  • 2021-08-31
相关资源
相似解决方案