Exemple #1
0
 protected override void Awake()
 {
     base.Awake();
     _pooler = new ObjectPooler <AudioSourcePooleable>();
     _audios = ArrayToDictionary.ToDictionary <AudioType, AudioClip, AudioClipWithAudioType>(audioClipWithAudioType);
     _pooler.InstantiateObjects(audioSourceQuantity, audioSourcePrefab, "Audio Sources");
 }
 private void Awake()
 {
     _screens = ArrayToDictionary.ToDictionary <Screen, GameObject, ScreenGameObject>(screenGameObjects);
     HideScreens();
     _currentScreen = _screens[startingScreen];
     _currentScreen.SetActive(true);
 }