Added audio data to the item pickups

This commit is contained in:
journaliciouz
2025-10-31 16:22:48 +01:00
parent cdbb2e0d3f
commit d317fffad7
4 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
using Core;
using UnityEngine;
using UnityEngine.Audio;
@@ -6,6 +7,7 @@ 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()
@@ -13,7 +15,7 @@ public class PulverAudioController : MonoBehaviour
audioSource = GetComponent<AppleAudioSource>();
followerController = GetComponent<FollowerController>();
followerController.PulverIsCombining.AddListener(PulverIsCombining);
}
void PulverIsCombining()
@@ -22,5 +24,10 @@ public class PulverAudioController : MonoBehaviour
audioSource.Play(0);
}
void ItemPickedUp(PickupItemData itemData)
{
}
}