Ejemplo n.º 1
0
        protected override void Awake()
        {
            base.Awake();

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