Пример #1
0
        private void Awake()
        {
            _instance = this;

            if (Config == null)
            {
                Debug.LogWarning("LSInjectorConfig is not specified. If you want to perform initialization," +
                                 " create LSInjectorConfig and attach it to LSInjector in the inspector.");
            }
            else
            {
                Debug.Log("Adding services from config");
                Config.Setup(this);
            }

            Debug.Log("Going to PreInit services");
            PreInit();
            Debug.Log("PreInit done");
        }
Пример #2
0
 public abstract void Setup(LSInjector injector);
Пример #3
0
 public override void Setup(LSInjector.LSInjector injector)
 {
     injector.AddService(new UIService.UIService());
     injector.AddService(new PopupUIService());
 }