Ejemplo n.º 1
0
 // -----------------------------------------------------------------------------------
 //
 // -----------------------------------------------------------------------------------
 void Awake()
 {
     onStateChanged += OnStateChanged;
     language        = configuration.defaultLanguage;
     SceneManager.LoadScene("GUI", LoadSceneMode.Additive);
     DontDestroyOnLoad(this.gameObject);
 }
Ejemplo n.º 2
0
 // -------------------------------------------------------------------------------
 // GetAllTemplates
 // -------------------------------------------------------------------------------
 static public List <LanguageTemplate> GetAllTemplates()
 {
     InstantiateLibrary();
     LanguageTemplate[] tmpl = new LanguageTemplate[Dict.Count];
     Dict.Values.CopyTo(tmpl, 0);
     return(tmpl.ToList());
 }
Ejemplo n.º 3
0
        // -----------------------------------------------------------------------------------
        // OnLangChanged
        // -----------------------------------------------------------------------------------
        public void OnLangChanged()
        {
            LanguageTemplate tmpl = LanguageLibrary.GetTemplate(languageDropdown.options[languageDropdown.value].text);

            Obj.GetGame.language = tmpl;
            Show();
        }