protected override void Awake()
        {
            base.Awake();

            audioClipAssets       = AudioClipAssetCache.LoadAssetCache <AudioClipAssetCache>();
            audioMixerGroupAssets = AudioMixerGroupAssetCache.LoadAssetCache <AudioMixerGroupAssetCache>();
        }
Beispiel #2
0
 private void Start()
 {
     audioClipAssets       = AudioClipAssetCache.LoadAssetCache <AudioClipAssetCache>();
     audioMixerGroupAssets = AudioMixerGroupAssetCache.LoadAssetCache <AudioMixerGroupAssetCache>();
     StateSynchronizationSceneManager.Instance.RegisterService(this, new ComponentBroadcasterDefinition <AudioSourceBroadcaster>(typeof(AudioSource)));
 }