enter image description here enter image description here
enter code here
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using static extensionMethods;
[RequireComponent(typeof(Dropdown))]
public class ChangeLanguage : MonoBehaviour
{
private LocalizationManager localizationManager;
void Start()
{
}
public void changeLanguage(int num)
{
Debug.Log(num);
localizationManager = LocalizationManager.instance;
string Langunage = "";
if (num == 0)
Langunage = "TM";
if (num == 1)
Langunage = "RU";
if (num == 2)
Langunage = "EN";
if (num == 3)
Langunage = "KZ";
if (num == 4)
Langunage = "TR";
localizationManager.SetLanguage(Langunage);
SceneManager.LoadScene("Loading");
}
}
After Choosing Language By DropDown I'am doing ReloadScene Language is translated but value of option DropDown is not Changed Can you help me to resolve that Problem