Beispiel #1
0
    public void OnPointerClick(PointerEventData pointerEventData)
    {
        if (Application.isMobilePlatform && _isEnabled)
        {
            _M7A119_inputManager._controlAudio.PlayAudio(0);

            ManagerDisplay _managerDisplay = _M7A119_inputManager._lightBox.transform.GetChild(0).GetChild(0).GetComponent <ManagerDisplay>();

            _managerDisplay.currentInput     = GetComponent <InputField>();
            _managerDisplay.limiteCaracteres = GetComponent <InputField>().characterLimit;

            _M7A119_inputManager._lightBox.SetActive(true);
            _M7A119_inputManager._lightBox.GetComponent <Animator>().Play("NumPad_in");
        }
    }
Beispiel #2
0
    public void OnPointerClick(PointerEventData pointerEventData)
    {
        if (Application.isMobilePlatform && _isEnabled)
        {
            _L4A255_managerInput._controlAudio.PlayAudio(0);

            if (_L4A255_managerInput._lightBox.transform.GetChild(0).GetChild(0).GetComponent <ManagerDisplay>())
            {
                ManagerDisplay _managerDisplay = _L4A255_managerInput._lightBox.transform.GetChild(0).GetChild(0).GetComponent <ManagerDisplay>();

                _managerDisplay.currentInput     = GetComponent <InputField>();
                _managerDisplay.limiteCaracteres = GetComponent <InputField>().characterLimit;

                _L4A255_managerInput._lightBox.SetActive(true);
                _L4A255_managerInput._lightBox.GetComponent <Animator>().Play("KeyBoard_inV2");
            }
            else if (_L4A255_managerInput._lightBox.GetComponent <BehaviourKeyBoardAlphabetic>())
            {
                BehaviourKeyBoardAlphabetic _managerDisplay = _L4A255_managerInput._lightBox.GetComponent <BehaviourKeyBoardAlphabetic>();

                _managerDisplay.currentInput    = GetComponent <InputField>();
                _managerDisplay._limitCharacter = GetComponent <InputField>().characterLimit;

                _L4A255_managerInput._lightBox.SetActive(true);

                if (!_L4A255_managerInput._lightBox.GetComponent <BehaviourKeyBoardAlphabetic>()._isFirstTime)
                {
                    _L4A255_managerInput._lightBox.SetActive(true);
                    _L4A255_managerInput._lightBox.GetComponent <Animator>().Play("KeyBoard_inV2");
                    StartCoroutine(_L4A255_managerInput._lightBox.GetComponent <BehaviourKeyBoardAlphabetic>().DelayForDisableAnimator(2));
                }
                else
                {
                    _L4A255_managerInput._lightBox.SetActive(true);
                    _L4A255_managerInput._lightBox.GetComponent <Animator>().Play("KeyBoard_inV2");
                    StartCoroutine(_L4A255_managerInput._lightBox.GetComponent <BehaviourKeyBoardAlphabetic>().DelayForDisableAnimator(2));
                }
            }
        }
    }
 private void Awake()
 {
     boton           = GetComponent <Button>();
     _controlAudio   = FindObjectOfType <ControlAudio>();
     _managerDisplay = FindObjectOfType <ManagerDisplay>();
 }