init
This commit is contained in:
commit
001bb14f16
951 changed files with 270074 additions and 0 deletions
17
Assets/Scripts/OptionsManagement/FindLanguageSelector.cs
Normal file
17
Assets/Scripts/OptionsManagement/FindLanguageSelector.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class FindLanguageSelector : MonoBehaviour{
|
||||
|
||||
public Dropdown dropdown;
|
||||
|
||||
private void Start(){
|
||||
dropdown.value = PlayerPrefs.GetInt("Language");
|
||||
}
|
||||
|
||||
public void OnLanguageChange(int languageSelected){
|
||||
PlayerPrefs.SetInt("Language", languageSelected);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue