| | |
| | | using UnityEngine; |
| | | using UnityEngine.EventSystems; |
| | | using System; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | |
| | | public class ButtonEx : Button |
| | |
| | | { |
| | | if (customPositiveSound) |
| | | { |
| | | SoundPlayer.Instance.PlayUIAudio(positiveSound); |
| | | SoundPlayer.Instance.PlayUIAudio(positiveSound).Forget(); |
| | | } |
| | | else |
| | | { |
| | | SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickPositiveAudio); |
| | | SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickPositiveAudio).Forget(); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | if (customNegativeSound) |
| | | { |
| | | SoundPlayer.Instance.PlayUIAudio(negativeSound); |
| | | SoundPlayer.Instance.PlayUIAudio(negativeSound).Forget(); |
| | | } |
| | | else |
| | | { |
| | | SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickNegativeAudio); |
| | | SoundPlayer.Instance.PlayUIAudio(SoundPlayer.defaultClickNegativeAudio).Forget(); |
| | | } |
| | | } |
| | | |