public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent) { base.Initialize(infrastructure, parent); Infrastructure.BinderAgg.Bind(this); _closeButton.onClick.AddListener(() => Event1().Publish()); }
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)); }
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; }
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()); }
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; }
public override void Initialize(IWindowInfrastructure infrastructure, RectTransform parent) { base.Initialize(infrastructure, parent); // Infrastructure.BinderAgg.Bind(this); }