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()
 {
     ecsController = FindObjectOfType <LootboxEcsController>()
                     ?? throw new Exception("Не удалось найти контроллер");
 }