Ejemplo n.º 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");
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     _screens = ArrayToDictionary.ToDictionary <Screen, GameObject, ScreenGameObject>(screenGameObjects);
     HideScreens();
     _currentScreen = _screens[startingScreen];
     _currentScreen.SetActive(true);
 }