Esempio n. 1
0
 /// <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)));
 }
Esempio n. 2
0
 /// <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)));
 }
Esempio n. 3
0
 /// <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)));
 }
Esempio n. 4
0
 /// <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)));
 }
Esempio n. 5
0
 /// <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)));
 }
Esempio n. 6
0
 /// <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)));
 }
Esempio n. 7
0
 /// <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)));
 }