From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)
---
Main/Component/UI/Core/ButtonEx.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Main/Component/UI/Core/ButtonEx.cs b/Main/Component/UI/Core/ButtonEx.cs
index a341eb6..f1ad8e6 100644
--- a/Main/Component/UI/Core/ButtonEx.cs
+++ b/Main/Component/UI/Core/ButtonEx.cs
@@ -2,6 +2,7 @@
using UnityEngine;
using UnityEngine.EventSystems;
using System;
+using Cysharp.Threading.Tasks;
public class ButtonEx : Button
@@ -70,11 +71,11 @@
{
if (customPositiveSound)
{
- SoundPlayer.Instance.PlayUIAudio(positiveSound);
+ SoundPlayer.Instance.PlayUIAudio(positiveSound).Forget();
}
else
{
- SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickPositiveAudio);
+ SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickPositiveAudio).Forget();
}
}
@@ -82,11 +83,11 @@
{
if (customNegativeSound)
{
- SoundPlayer.Instance.PlayUIAudio(negativeSound);
+ SoundPlayer.Instance.PlayUIAudio(negativeSound).Forget();
}
else
{
- SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickNegativeAudio);
+ SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickNegativeAudio).Forget();
}
}
--
Gitblit v1.8.0