コード例 #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());
 }