public void ShowKeyboard(KeyboardTextInput textInput, string initialValue, int maxCharacters, KeyboardType keyboardType) { currentType = keyboardType; GetInputText().text = initialValue; showingSymbols = false; maxInputLength = maxCharacters; keyboardTextInput = textInput; if (emailKeyboard != null) { emailKeyboard.SetActive(false); } if (numPadKeyboard != null) { numPadKeyboard.SetActive(false); } switch (keyboardType) { case KeyboardType.EMAIL: emailKeyboard.SetActive(true); break; case KeyboardType.NUMBER: numPadKeyboard.SetActive(true); break; } }
public void HideKeyboards() { keyboardTextInput = null; Clear(); if (emailKeyboard != null) { emailKeyboard.SetActive(false); } if (numPadKeyboard != null) { numPadKeyboard.SetActive(false); } }