protected void Awake() { lootboxEcsController = FindObjectOfType <LootboxEcsController>() ?? throw new NullReferenceException(nameof(lootboxEcsController)); lootboxSceneSwitcher = FindObjectOfType <LootboxSceneSwitcher>() ?? throw new NullReferenceException(nameof(lootboxSceneSwitcher)); }
private void Awake() { ecsController = FindObjectOfType <LootboxEcsController>() ?? throw new Exception("Не удалось найти контроллер"); }