private static void InitControlPool()
 {
     rectPool        = Injector.Instance.Get <YuLegoRectTransformPool>();
     textPool        = Injector.Instance.Get <YuLegoTextPool>();
     imagePool       = Injector.Instance.Get <YuLegoImagePool>();
     rawImagePool    = Injector.Instance.Get <YuLegoRawImagePool>();
     buttonPool      = Injector.Instance.Get <YuLegoButtonPool>();
     _tButtonPool    = Injector.Instance.Get <YuLegoTButtonPool>();
     togglePool      = Injector.Instance.Get <YuLegoTogglePool>();
     sliderPool      = Injector.Instance.Get <YuLegoSliderPool>();
     progressbarPool = Injector.Instance.Get <YuLegoProgressbarPool>();
     inputFieldPool  = Injector.Instance.Get <YuLegoInputFieldPool>();
     dropdownPool    = Injector.Instance.Get <YuLegoDropdownPool>();
     scrollViewPool  = Injector.Instance.Get <YuLegoScrollViewPool>();
 }
Beispiel #2
0
        private static void InitControlPool()
        {
            if (!Application.isPlaying)
            {
                return;
            }

            var injector = Injector.Instance.As <IU3dInjector>();

            rectPool        = injector.GetMono <YuLegoRectTransformPool>();
            textPool        = injector.GetMono <YuLegoTextPool>();
            imagePool       = injector.GetMono <YuLegoImagePool>();
            rawImagePool    = injector.GetMono <YuLegoRawImagePool>();
            buttonPool      = injector.GetMono <YuLegoButtonPool>();
            tButtonPool     = injector.GetMono <YuLegoTButtonPool>();
            togglePool      = injector.GetMono <YuLegoTogglePool>();
            planeTogglePool = injector.GetMono <YuLegoPlaneTogglePool>();
            sliderPool      = injector.GetMono <YuLegoSliderPool>();
            progressbarPool = injector.GetMono <YuLegoProgressbarPool>();
            inputFieldPool  = injector.GetMono <YuLegoInputFieldPool>();
            dropdownPool    = injector.GetMono <YuLegoDropdownPool>();
            scrollViewPool  = injector.GetMono <YuLegoScrollViewPool>();
            rockerPool      = injector.GetMono <YuLegoRockerPool>();
        }