Commit b3257a141fc7d2d49d215c663adb8a624cb472a7

Authored by ClaudiomarAraujo
1 parent 62387b4d

teste

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
Assets/Scripts/PlayerManager.cs
@@ -18,6 +18,7 @@ public class PlayerManager : GenericPlayerManager { @@ -18,6 +18,7 @@ public class PlayerManager : GenericPlayerManager {
18 private const string SERVER_URL = "http://vlibras.lavid.ufpb.br:5000/glosa?texto="; 18 private const string SERVER_URL = "http://vlibras.lavid.ufpb.br:5000/glosa?texto=";
19 19
20 public GameObject loading_snippet; 20 public GameObject loading_snippet;
  21 + public Button button_connection_error;
21 22
22 //private const string BASE_URL = "http://150.165.205.9/anims/AssetBundles/0_DefaultBundles/"; 23 //private const string BASE_URL = "http://150.165.205.9/anims/AssetBundles/0_DefaultBundles/";
23 public InputField INFIELD; 24 public InputField INFIELD;
@@ -101,14 +102,9 @@ public class PlayerManager : GenericPlayerManager { @@ -101,14 +102,9 @@ public class PlayerManager : GenericPlayerManager {
101 // Called from microphone icon at main interface 102 // Called from microphone icon at main interface
102 public void callVoiceRecognizer() 103 public void callVoiceRecognizer()
103 { 104 {
104 - /*  
105 - //base.voiceRecognizer.callConnectionError();  
106 CheckConnection(); 105 CheckConnection();
107 - //StartCoroutine(CheckConnection());  
108 - Debug.Log("passou");  
109 if(thereIsConnection) 106 if(thereIsConnection)
110 { 107 {
111 - //base.glosa = base.voiceRecognizer.callRecognition();  
112 base.glosa = base.voiceRecognizer.callRecognition(); 108 base.glosa = base.voiceRecognizer.callRecognition();
113 if(!base.glosa.Equals("")) 109 if(!base.glosa.Equals(""))
114 { 110 {
@@ -142,4 +138,8 @@ public class PlayerManager : GenericPlayerManager { @@ -142,4 +138,8 @@ public class PlayerManager : GenericPlayerManager {
142 138
143 } 139 }
144 } 140 }
  141 +
  142 + void ConnectionError(){
  143 +
  144 + }
145 } 145 }