public override void ToAction(UI_Container _curContainer, UI_Container _targetContainer, object _data = null)
        {
            StrengthReturnData data = (StrengthReturnData)_data;
            UI_SelectStrengtMatSettingModule module = (UI_SelectStrengtMatSettingModule)_targetContainer.SettingModule;

            module.SetType(data.viewType, data.type, (List <int>)data.data, data.targetIndex);
            _targetContainer.OpenContainer(_curContainer);
        }
 public override void ToAction(UI_Container _curContainer, UI_Container _targetContainer, object _data)
 {
     OnClickStart();
     if (_targetContainer)
     {
         _targetContainer.OpenContainer(_curContainer);
     }
     _curContainer.gameObject.SetActive(false);
 }
        public override void ToAction(UI_Container _curContainer, UI_Container _targetContainer, object _data)
        {
            UI_SettingModuleHaveSubContainerModule module = ((UI_SettingModuleHaveSubContainerModule)_curContainer.SettingModule);

            if (_data != null)
            {
                if (module.curSubContainer == ((OpenSubContainerData)_data).SubContainerIndex)
                {
                    return;
                }
                ((UI_SubContainerSettingModule)_targetContainer.SettingModule).SetSubContianer(((OpenSubContainerData)_data).Data);
                module.OpenSubContainer((OpenSubContainerData)_data);
            }

            _targetContainer.OpenContainer(_curContainer);
        }
Exemple #4
0
        public override void ToAction(UI_Container _curContainer, UI_Container _targetContainer, object _data)
        {
            if (_curContainer.OpenOtherContainer == true)
            {
                return;
            }
            _curContainer.OpenOtherContainer = true;
            _targetContainer.OpenContainer(_curContainer);
            _curContainer.gameObject.SetActive(false);
            var prevC = _curContainer.PrevContainer;

            while (prevC != null)
            {
                prevC.transform.gameObject.SetActive(false);
                prevC = prevC.PrevContainer;
            }
        }