summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/I2.Loc/SetLanguage.cs
blob: 108efdc722257a85033f60140d4837f25d829017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using UnityEngine;

namespace I2.Loc;

[AddComponentMenu("I2/Localization/SetLanguage Button")]
public class SetLanguage : MonoBehaviour
{
	public string _Language;

	private void OnClick()
	{
		ApplyLanguage();
	}

	public void ApplyLanguage()
	{
		if (LocalizationManager.HasLanguage(_Language))
		{
			LocalizationManager.CurrentLanguage = _Language;
		}
	}
}