Ejemplo n.º 1
0
        /// <summary>
        /// Initializes Hashtable of locale array.
        /// </summary>
        private void InitializeKeyboards()
        {
            KMInstance = KeyboardManager.Instance;

            if (ValidateInputField())
            {
                foreach (KeyboardLanguage _kl in LocaleArray)
                {
                    if (!KMInstance.IsLocaleRegistered(_kl))
                    {
                        #if UNITY_EDITOR
                        Debug.Log(LOG_TAG + ", InitializeKeyboards() " + _kl + " does NOT have registered keyboard.");
                        #endif
                        continue;
                    }

                    switch (_kl)
                    {
                    case KeyboardLanguage.English:
                        English _eng = new English(this, IsPassword);
                        htLocaleArray.Add(_kl, _eng);
                        break;

                    case KeyboardLanguage.TraditionalChinese:
                        break;

                    case KeyboardLanguage.Symbol:
                        Symbol _sym = new Symbol(this, IsPassword);
                        htLocaleArray.Add(_kl, _sym);
                        break;

                    default:
                        break;
                    }

                    initialized = true;
                }
            }
        }