using Core; using UnityEngine; using UnityEngine.Audio; public class PulverAudioController : MonoBehaviour { private AppleAudioSource audioSource; public AudioResource combineAudio; private FollowerController followerController; public ItemManager itemManager; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { audioSource = GetComponent(); followerController = GetComponent(); followerController.PulverIsCombining.AddListener(PulverIsCombining); } void PulverIsCombining() { audioSource.audioSource.resource = combineAudio; audioSource.Play(0); } void ItemPickedUp(PickupItemData itemData) { } }