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"); }
public abstract void Setup(LSInjector injector);
public override void Setup(LSInjector.LSInjector injector) { injector.AddService(new UIService.UIService()); injector.AddService(new PopupUIService()); }