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); } }
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); }
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); }