Exemplo n.º 1
0
        /// <summary>
        /// Init the input.
        /// </summary>
        protected override void InitInput()
        {
#if UNITY_5_2 || UNITY_5_3 || UNITY_5_3_OR_NEWER
            if (InputHours != null)
            {
                InputProxyHours = new InputFieldTMProProxy(InputHours);
            }

            if (InputMinutes != null)
            {
                InputProxyMinutes = new InputFieldTMProProxy(InputMinutes);
            }

            if (InputSeconds != null)
            {
                InputProxySeconds = new InputFieldTMProProxy(InputSeconds);
            }
#else
            if (InputHours != null)
            {
                InputProxyHours = new InputFieldProxy(InputHours);
            }

            if (InputMinutes != null)
            {
                InputProxyMinutes = new InputFieldProxy(InputMinutes);
            }

            if (InputSeconds != null)
            {
                InputProxySeconds = new InputFieldProxy(InputSeconds);
            }
#endif
        }
Exemplo n.º 2
0
 /// <summary>
 /// Init the input.
 /// </summary>
 protected override void InitInput()
 {
     if (InputHex != null)
     {
         InputProxyHex = new InputFieldTMProProxy(InputHex);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Init InputProxy.
 /// </summary>
 protected override void InitFilenameInputProxy()
 {
     if (FilenameInputProxy == null)
     {
         FilenameInputProxy = new InputFieldTMProProxy(FilenameInputTMPro);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Init InputFieldProxy.
 /// </summary>
 protected override void InitInputFieldProxy()
 {
     InputProxy = new InputFieldTMProProxy(GetComponent <TMP_InputField>());
     InputProxy.interactable = editable;
     InputProxy.onEndEdit.AddListener(InputItem);
 }