Commit 6ff022a3f259d8d7e74ebbc2bcf0decd6175938a
1 parent
c06a78c1
Exists in
IosBuild
Fix empty text
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
Assets/Scripts/PlayerManager.cs
| ... | ... | @@ -109,12 +109,17 @@ 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 (text != "") | |
| 113 | + { | |
| 114 | 114 | |
| 115 | - StartCoroutine("translate", text); | |
| 116 | 115 | |
| 117 | - this.screenManager.setPauseMenuState(false); | |
| 116 | + translateScreenText.text = ""; | |
| 117 | + this.screenManager.changeExportStates(ExportLayers.ExportLayer.OnLockExport, false); | |
| 118 | + | |
| 119 | + StartCoroutine("translate", text); | |
| 120 | + | |
| 121 | + this.screenManager.setPauseMenuState(false); | |
| 122 | + } | |
| 118 | 123 | } |
| 119 | 124 | |
| 120 | 125 | public void stopTranslation() | ... | ... |