2 using System.Collections.Generic;
20 [SerializeField] SystemLanguage
Language = SystemLanguage.English;
21 [SerializeField] AudioClip Clip = null;
22 [SerializeField] [Range(0.0f, 1.0f)]
float Volume = 1.0f;
26 public SystemLanguage GetLanguage {
get {
return Language; } }
27 public AudioClip GetClip {
get {
return Clip; } }
28 public float GetVolume {
get {
return Volume; } }
36 [SerializeField] List<AudioLocalizationElement> AudioLocalizationElements =
new List<AudioLocalizationElement>();
47 return GetAudioLocalizationElement(language.
Value);
59 for (
int i = 0; i < AudioLocalizationElements.Count; i++)
61 if(language == AudioLocalizationElements[i].GetLanguage)
62 return AudioLocalizationElements[i];
65 return AudioLocalizationElements.Count > 0 ? AudioLocalizationElements[0] : null;
This subclass holds the data for a audio localization in a specific language.
AudioLocalizationElement GetAudioLocalizationElement(SystemLanguage language)
Alternative way of getting the localized string with SystemLanguage as input.
Special Variable enables the use of the SystemLanguage data type as a variable of the settings system...
AudioLocalizationElement GetAudioLocalizationElement(Language language)
This function returns the AudioLocalizationElement in a specific language. If there is no localizatio...
This is a data type that combines a float start and a float end value into one value. This can be used for storing min max informations for a random generator or volume settings.
This ScriptableObject contains as a container for all audio localization information.