Exemplo n.º 1
0
 private void CreateVisibleText(string name, string definition)
 {
     SetResultUIState();
     if (name == null || name == "")
     {
         name       = "Oops";
         definition = "No call. \nTry again with a different angle!";
     }
     else if (definition == null || definition == "")
     {
         definition = "I don't know what is this...";
     }
     else
     {
         name       = TextFormatter.FormatName(name);
         definition = TextFormatter.FormatDefinition(definition);
     }
     titleTextObject.GetComponent <Text> ().text      = name;
     definitionTextObject.GetComponent <Text> ().text = definition;
 }