yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
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();
        }
    }