fixed controls, texts and added image, v1.4.1
This commit is contained in:
@@ -34,8 +34,20 @@ public class TextHandler : MonoBehaviour
|
||||
|
||||
public static string translate(string text){
|
||||
string result = "";
|
||||
for(int i = 0; i < text.Split(" ").Length; i++){
|
||||
result += getText(text.Split(" ")[i]) + " ";
|
||||
string[] parts = text.Split(" ");
|
||||
for(int i = 0; i < parts.Length; i++){
|
||||
try{
|
||||
int.Parse(parts[i]);
|
||||
result += parts[i] + " ";
|
||||
}
|
||||
catch(Exception ex){
|
||||
if(parts[i].Contains("/")){
|
||||
result += parts[i] + " ";
|
||||
}
|
||||
else{
|
||||
result += getText(parts[i]) + " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user