Exemple #1
0
        public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent)
        {
            base.Initialize(infrastructure, parent);

            Infrastructure.BinderAgg.Bind(this);
            _closeButton.onClick.AddListener(() => Event1().Publish());
        }
Exemple #2
0
        public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent)
        {
            base.Initialize(infrastructure, parent);

            Infrastructure.BinderAgg.Bind(this);
            _abilitiesButton.onClick.AddListener(() => Event1().Publish(WindowType.Abilities));
            _recordBookButton.onClick.AddListener(() => Event1().Publish(WindowType.RecordBook));
        }
Exemple #3
0
 public WindowBuilder(ISetCanvasBounds setCanvasBounds, IWindowControllerFactory windowControllerFactory,
                      IWindowCanvasBuilder canvasBuilder,
                      IWindowInfrastructure windowInfrastructure, UnityEnumPool <WindowType, Contractor.View> enumPool)
 {
     _controllerFactory    = windowControllerFactory;
     _canvasBuilder        = canvasBuilder;
     _windowInfrastructure = windowInfrastructure;
     _enumPool             = enumPool;
     _setCanvasBounds      = setCanvasBounds;
 }
Exemple #4
0
        public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent)
        {
            base.Initialize(infrastructure, parent);

            Infrastructure.BinderAgg.Bind(this);
            for (var i = 0; i < _teachers.Length; i++)
            {
                BindTeacherButton(i);
            }
            _hero.Button.onClick.AddListener(() => Event1().Publish());
        }
Exemple #5
0
            public virtual void Initialize(IWindowInfrastructure infrastructure, RectTransform parent)
            {
                Infrastructure = infrastructure;
                var localScale    = Transform.localScale;
                var localPosition = Transform.localPosition;
                var offsetMin     = Transform.offsetMin;
                var offsetMax     = Transform.offsetMax;

                Transform.SetParent(parent);
                Transform.localScale    = localScale;
                Transform.localPosition = localPosition;

                Transform.offsetMin = offsetMin;
                Transform.offsetMax = offsetMax;
            }
Exemple #6
0
        public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent)
        {
            base.Initialize(infrastructure, parent);

            // Infrastructure.BinderAgg.Bind(this);
        }