protected void Awake()
 {
     lootboxEcsController = FindObjectOfType <LootboxEcsController>()
                            ?? throw new NullReferenceException(nameof(lootboxEcsController));
     lootboxSceneSwitcher = FindObjectOfType <LootboxSceneSwitcher>()
                            ?? throw new NullReferenceException(nameof(lootboxSceneSwitcher));
 }
Esempio n. 2
0
 private void Awake()
 {
     lobbyLoaderController = FindObjectOfType <LootboxSceneSwitcher>()
                             ?? throw new NullReferenceException(nameof(LootboxSceneSwitcher));
     lootboxUiStorage = FindObjectOfType <LootboxUiStorage>()
                        ?? throw new NullReferenceException(nameof(LootboxUiStorage));
     particlesColorUpdater = FindObjectOfType <ParticlesColorUpdater>()
                             ?? throw new NullReferenceException(nameof(ParticlesColorUpdater));
 }