Esempio n. 1
0
 private void OnGetTranslation(IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v1.Translations translation)
 {
     if (translation != null && translation.translations.Length > 0)
     {
         Debug.Log("Spanish Translation: " + translation.translations[0].translation);
     }
 }
Esempio n. 2
0
 public void OnGetTranslation(IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v1.Translations translation)
 {
     if (translation != null && translation.translations.Length > 0)
     {
         translatedName = translation.translations[0].translation;
     }
     Debug.Log(translatedName);
 }
Esempio n. 3
0
    public void SetWithString(IBM.Watson.DeveloperCloud.Services.LanguageTranslation.v1.Translations translation)
    {
        if (translation != null && translation.translations.Length > 0)
        {
            withString = translation.translations[0].translation;
        }

        Debug.LogFormat("'With' string is set to {0}", withString);
    }