Added audio data to the item pickups
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user