31 lines
621 B
C#
31 lines
621 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Hallucinate.UI
|
|
{
|
|
public class LocalizationManager : MonoBehaviour
|
|
{
|
|
public static LocalizationManager Instance { get; private set; }
|
|
|
|
public event Action OnLanguageChanged;
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance == null)
|
|
{
|
|
Instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
else
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
|
|
public string GetLocalizedString(string key)
|
|
{
|
|
return key;
|
|
}
|
|
}
|
|
}
|