From 4c9f08e28e24d1ec6fce041e56ac874eb5f67cb0 Mon Sep 17 00:00:00 2001 From: bansomin Date: Thu, 2 Jan 2025 10:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnotify=E6=9C=AA=E6=B8=85?= =?UTF-8?q?=E7=90=86item=E8=8A=82=E7=82=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/core/gui/prompt/Notify.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/core/gui/prompt/Notify.ts b/assets/core/gui/prompt/Notify.ts index 6c49bbd..c24b4c9 100644 --- a/assets/core/gui/prompt/Notify.ts +++ b/assets/core/gui/prompt/Notify.ts @@ -1,8 +1,8 @@ /* * @Author: dgflash * @Date: 2022-04-14 17:08:01 - * @LastEditors: dgflash - * @LastEditTime: 2022-09-02 14:07:13 + * @LastEditors: bansomin + * @LastEditTime: 2025-01-02 10:47:47 */ import { Animation, Component, Label, _decorator } from "cc"; import { LanguageLabel } from "../../../libs/gui/language/LanguageLabel"; @@ -27,7 +27,7 @@ export class Notify extends Component { } private onFinished() { - this.node.destroy(); + this.node.parent!.destroy(); this.onComplete && this.onComplete(); this.onComplete = null!; } -- Gitee