/// <summary> /// Returns a prefab in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The prefab.</returns> public GameObject GetPrefab(string key, int count, Func<int, int> pluralForm) { return GetPrefab(PluralForms.GetPluralKey(key, count, pluralForm)); }
/// <summary> /// Returns a texture in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The texture.</returns> public Texture GetTexture(string key, int count, Func<int, int> pluralForm) { return GetTexture(PluralForms.GetPluralKey(key, count, pluralForm)); }
/// <summary> /// Returns a font in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The localized font</returns> public Font GetFont(string key, int count, Func<int, int> pluralForm) { return GetFont(PluralForms.GetPluralKey(key, count, pluralForm)); }
/// <summary> /// Returns an audio clip in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The audio clip.</returns> public AudioClip GetAudioClip(string key, int count, Func<int, int> pluralForm) { return GetAudioClip(PluralForms.GetPluralKey(key, count, pluralForm)); }
/// <summary> /// Returns a texture in the current language for the key with plural forms. Returns null if nothing is found. /// </summary> /// <returns>The texture.</returns> public Texture GetTexture(string key, int count) { return GetTexture(PluralForms.GetPluralKey(languageDataHandler.LoadedCulture.languageCode, key, count)); }
/// <summary> /// Returns a prefab in the current language for the key with plural forms. Returns null if nothing is found. /// </summary> /// <returns>The prefab.</returns> public GameObject GetPrefab(string key, int count) { return GetPrefab(PluralForms.GetPluralKey(languageDataHandler.LoadedCulture.languageCode, key, count)); }
/// <summary> /// Returns an audio clip in the current language for the key with plural forms. Returns null if nothing is found. /// </summary> /// <returns>The audio clip.</returns> public AudioClip GetAudioClip(string key, int count) { return GetAudioClip(PluralForms.GetPluralKey(languageDataHandler.LoadedCulture.languageCode, key, count)); }
/// <summary> /// Returns a text asset in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The text asset.</returns> public TextAsset GetTextAsset(string key, int count, Func <int, int> pluralForm) { return(GetTextAsset(PluralForms.GetPluralKey(key, count, pluralForm))); }
/// <summary> /// Returns a text value in the current language for the key with a custom plural form. Returns null if nothing is found. /// </summary> /// <returns>The text value.</returns> public string GetTextValue(string key, int count, Func <int, int> pluralForm) { return(GetTextValue(PluralForms.GetPluralKey(key, count, pluralForm))); }