Exemplo 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));
	}
Exemplo 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));
	}
Exemplo n.º 3
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));
	}
Exemplo n.º 4
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));
	}
Exemplo 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));
	}
Exemplo 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));
	}
Exemplo 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));
	}
Exemplo n.º 8
0
 /// <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)));
 }
Exemplo n.º 9
0
 /// <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)));
 }