Exemplo n.º 1
0
        public void SetPagerControl(IPagerControl pagerControl)
        {
            m_pagerControl = pagerControl;

            m_Chooser.updateDropdownCaption = setChooserText;
            m_Chooser.updateDropdownOption  = setChooserOption;
            m_Chooser.setRootCanvas(pagerControl.Canvas);
            chooserText = pagerControl.replaceTextComponentWithTMPro(m_Chooser.captionArea.GetComponent <Text> ());
            updatePagerValues();
            m_pagerControl.registerUpdateAction(updatePagerValues);
        }
Exemplo n.º 2
0
        public void SetControl(ISaverControl saverControl)
        {
            m_saverControl = saverControl;
            m_Chooser.updateDropdownCaption = setChooserText;
            m_Chooser.updateDropdownOption  = setChooserOption;
            m_Chooser.setRootCanvas(saverControl.Canvas);

            chooserText = saverControl.replaceTextComponentWithTMPro(m_Chooser.captionArea.GetComponent <Text> ());
            saverControl.replaceInputFieldWithTMPro(m_NameInput, inputFieldSubmit, inputFieldChange);
            switchChooser();
            repopulateChooser();
        }