Ashby Issac ece8c8d5cb Initialized project with loader scripts and necessary components.
Added newtonsoft package.
Added dotween package.
Updated game scene with PopupManager, GameBootLoader.
Added necessary UI scripts.
2026-01-20 20:17:48 +05:30

37 lines
799 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ButtonSound : MonoBehaviour
{
private Button buttonComp;
// private SoundManager soundManager;
private void Awake()
{
buttonComp = GetComponent<Button>();
}
private void OnEnable()
{
buttonComp.onClick.AddListener(OnClick);
}
private void OnDisable()
{
buttonComp.onClick.RemoveListener(OnClick);
}
public void OnClick()
{
SetSoundManager();
// soundManager.PlayButtonSoundClip(SoundType.Button_Click);
}
private void SetSoundManager()
{
// soundManager = soundManager == null ? InterfaceManager.Instance?.GetInterfaceInstance<SoundManager>() : soundManager;
}
}