예제 #1
0
 // Token: 0x06003FF9 RID: 16377 RVA: 0x00141C44 File Offset: 0x00140044
 public void Initialize()
 {
     PhysSoundTempAudioPool.Instance = this;
     this.audioSources = new PhysSoundTempAudio[PhysSoundTempAudioPool.TempAudioPoolSize];
     for (int i = 0; i < PhysSoundTempAudioPool.TempAudioPoolSize; i++)
     {
         GameObject         gameObject         = new GameObject("Temp Audio Source");
         PhysSoundTempAudio physSoundTempAudio = gameObject.AddComponent <PhysSoundTempAudio>();
         physSoundTempAudio.Initialize(this);
         this.audioSources[i] = physSoundTempAudio;
     }
 }
        public void Initialize()
        {
            Instance = this;

            audioSources = new PhysSoundTempAudio[TempAudioPoolSize];

            for (int i = 0; i < TempAudioPoolSize; i++)
            {
                GameObject         g = new GameObject("Temp Audio Source");
                PhysSoundTempAudio a = g.AddComponent <PhysSoundTempAudio>();
                a.Initialize(this);

                audioSources[i] = a;
            }
        }