diff --git a/assets/Script/Engine/Component/Button/HoldButton.ts b/assets/Script/Engine/Component/Button/HoldButton.ts index 3b9f7c6..356124a 100644 --- a/assets/Script/Engine/Component/Button/HoldButton.ts +++ b/assets/Script/Engine/Component/Button/HoldButton.ts @@ -44,7 +44,7 @@ export default class HoldButton extends cc.Component { //#region Lifecycle protected start(): void { - this._clickEvents = this.getComponent(cc.Button).clickEvents.slice(0); + this._clickEvents = Array.from(this.getComponent(cc.Button).clickEvents); this.getComponent(cc.Button).clickEvents.Clear(); if (this.HoldLine != null) { this.HoldLine.active = false;