12345678910111213141516171819202122232425262728293031 |
- using System;
- using UnityEngine;
- namespace I2.Loc
- {
- public class Example_ChangeLanguage : MonoBehaviour
- {
- public void SetLanguage_English()
- {
- this.SetLanguage("English");
- }
- public void SetLanguage_French()
- {
- this.SetLanguage("French");
- }
- public void SetLanguage_Spanish()
- {
- this.SetLanguage("Spanish");
- }
- public void SetLanguage(string LangName)
- {
- if (LocalizationManager.HasLanguage(LangName, true, true, true))
- {
- LocalizationManager.CurrentLanguage = LangName;
- }
- }
- }
- }
|