2025-10-31 16:22:48 +01:00
|
|
|
using Core;
|
2025-11-10 12:19:20 +01:00
|
|
|
using Core.Lifecycle;
|
2025-10-31 15:45:28 +01:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Audio;
|
|
|
|
|
|
2025-11-10 12:19:20 +01:00
|
|
|
public class PulverAudioController : ManagedBehaviour
|
2025-10-31 15:45:28 +01:00
|
|
|
{
|
2025-11-10 12:19:20 +01:00
|
|
|
public AppleAudioSource audioSource;
|
2025-10-31 15:45:28 +01:00
|
|
|
public AudioResource combineAudio;
|
|
|
|
|
private FollowerController followerController;
|
2025-10-31 16:22:48 +01:00
|
|
|
public ItemManager itemManager;
|
2025-10-31 15:45:28 +01:00
|
|
|
|
2025-11-10 21:59:47 +01:00
|
|
|
internal override void OnManagedStart()
|
2025-10-31 15:45:28 +01:00
|
|
|
{
|
|
|
|
|
followerController = GetComponent<FollowerController>();
|
|
|
|
|
followerController.PulverIsCombining.AddListener(PulverIsCombining);
|
2025-10-31 16:22:48 +01:00
|
|
|
|
2025-10-31 15:45:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PulverIsCombining()
|
|
|
|
|
{
|
|
|
|
|
audioSource.audioSource.resource = combineAudio;
|
|
|
|
|
audioSource.Play(0);
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-31 16:22:48 +01:00
|
|
|
void ItemPickedUp(PickupItemData itemData)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-31 15:45:28 +01:00
|
|
|
|
|
|
|
|
}
|