private void Awake()
 {
     Initialized         = false;
     m_temporaryCluster  = null;
     MeshDeletionUpdater = new MeshDeletionUpdater();
     SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
 }
Beispiel #2
0
        protected override void Awake()
        {
            if (Playbacks == null)
            {
                Playbacks = new List <SoundToolKitPlayback>();
            }

            Initialized = false;
            SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
        }
Beispiel #3
0
        private void Awake()
        {
            Initialized = false;
            SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);

            foreach (var source in m_sources)
            {
                if (source != null && source is SpatialComponent)
                {
                    m_toolkit.AddSoundSource(((SpatialComponent)source).SourceSpatial);
                }
            }
        }
 private void Awake()
 {
     if (SoundToolKitManager.Instance != null &&
         SoundToolKitManager.Instance.ResourceContainer != null &&
         SoundToolKitManager.Instance.ResourceContainer.Status != null)
     {
         Destroy(gameObject);
     }
     else
     {
         DontDestroyOnLoad(gameObject);
         Initialized = false;
         SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
     }
 }
Beispiel #5
0
 private void Awake()
 {
     Initialized       = false;
     m_previousCluster = m_meshCluster;
     SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
 }
 private void Awake()
 {
     Initialized = false;
     SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
 }
 protected override void Awake()
 {
     Initialized = false;
     SoundToolKitSubscriber.SubscribeOnIntialized(soundToolKitObserver: this);
 }