Exemplo n.º 1
0
        public void AddText()
        {
            if (Time.time - timer > timeDelay)
            {
                switch (TextType)
                {
                case Text_Type.Backspace:

                    keyboard.Backspace();


                    break;

                case Text_Type.Enter:

                    keyboard.Enter();

                    break;

                default:
                    keyboard.AddText(key);
                    break;
                }
                timer = Time.time;
            }
        }