Пример #1
0
        private void OnClickGearView(GearDO gearData)
        {
            if (isSelect)
            {
                return;
            }

            selectedGear = new UISelectResponse <GearDO>(gearData);
            isSelect     = true;
        }
Пример #2
0
        public async void OnClickEquipButton()
        {
            if (uiGearPresenter.IsOpen)
            {
                uiGearPresenter.Close();
            }
            else
            {
                UISelectResponse <GearDO> gear = await uiGearPresenter.Open();

                if (null != gear)
                {
                }
            }
        }
Пример #3
0
        public async UniTask <UISelectResponse <GearDO> > Open()
        {
            selectedGear = null;
            isSelect     = false;

            gearScrollView.SetActive(true);
            await ownRectTransform.DOSizeDelta(openedRectSize, .25f);

            await UniTask.WaitUntil(() => isSelect);

            await ownRectTransform.DOSizeDelta(closedRectSize, .25f);

            gearScrollView.SetActive(false);

            return(selectedGear);
        }
Пример #4
0
 public void Close()
 {
     selectedGear = default;
     isSelect     = true;
 }