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