Made apple audio sources use OnManagedAwake
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
using Core;
|
||||
using Core.Lifecycle;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
public class PulverAudioController : MonoBehaviour
|
||||
public class PulverAudioController : ManagedBehaviour
|
||||
{
|
||||
private AppleAudioSource audioSource;
|
||||
public 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()
|
||||
protected override void OnManagedAwake()
|
||||
{
|
||||
audioSource = GetComponent<AppleAudioSource>();
|
||||
followerController = GetComponent<FollowerController>();
|
||||
followerController.PulverIsCombining.AddListener(PulverIsCombining);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user