Commit e3efc1774924ac6cf19fa2428df9bbfff8da420d

Authored by thiago.filipe
1 parent 02f61778
Exists in master and in 1 other branch Export

Fix empty text

Assets/Scripts/Export Video/ExportVideo.cs
... ... @@ -32,7 +32,7 @@ public class ExportVideo : MonoBehaviour {
32 32 public ScreenManager screenManager;
33 33 public MediaShareAndroid MediaShareAndroid;
34 34  
35   - private const string SERVER_URL = "http://150.165.205.84:80/video";
  35 + private const string SERVER_URL = "http://traducao.vlibras.gov.br/video";
36 36  
37 37  
38 38  
... ...
Assets/Scripts/PlayerManager.cs
... ... @@ -109,12 +109,15 @@ public class PlayerManager : GenericPlayerManager {
109 109 base.stopAll();
110 110  
111 111 string text = translateScreenText.text;
112   - translateScreenText.text = "";
113   - this.screenManager.changeExportStates(ExportLayers.ExportLayer.OnLockExport, false);
  112 + if (!String.IsNullOrEmpty(text))
  113 + {
  114 + translateScreenText.text = "";
  115 + this.screenManager.changeExportStates(ExportLayers.ExportLayer.OnLockExport, false);
114 116  
115   - StartCoroutine("translate", text);
  117 + StartCoroutine("translate", text);
116 118  
117   - this.screenManager.setPauseMenuState(false);
  119 + this.screenManager.setPauseMenuState(false);
  120 + }
118 121 }
119 122  
120 123 public void stopTranslation()
... ...