- Home /
Multiple entries TouchScreenKeyboard iOS
Hello guys, I tries to create multiple entries in my app, but with no success. I've used this code, can you help me?
 var text1 : String;
 var text2 : String;
 var isTyping : boolean;
  
 function OnGUI() {
     if (GUI.Button(Rect(10, 10, 200, 32), text1) && !isTyping) {
         StartCoroutine(COInputText1());
     }
     if (GUI.Button(Rect(10, 50, 200, 32), text2) && !isTyping) {
         StartCoroutine(COInputText2());
     }
 }
  
 function COInputText1() {
     isTyping = true;
     var keyboard : iPhoneKeyboard;
     keyboard = iPhoneKeyboard.Open(text1);
     yield keyboard;
     text1 = keyboard.text;
     isTyping = false;
 }
  
 function COInputText2() {
     isTyping = true;
     var keyboard : iPhoneKeyboard;
     keyboard = iPhoneKeyboard.Open(text2);
     yield keyboard;
     text2 = keyboard.text;
     isTyping = false;
 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
A node in a childnode? 1 Answer
OnMouseDown is checked when build for Android 2 Answers
How to make an ingame weapon/ammo shop 0 Answers
Upgrading Unity 3.2 Problems 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                