2023-01-22 16:38:23 +01:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Scripts
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("")]
|
2023-01-22 16:38:23 +01:00
|
|
|
|
public class CCKLocalizationReplacer : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public string identifier;
|
|
|
|
|
|
|
|
|
|
public void Start()
|
|
|
|
|
{
|
|
|
|
|
var text = gameObject.GetComponent<Text>();
|
|
|
|
|
if (text != null)
|
|
|
|
|
text.text = CCKLocalizationProvider.GetLocalizedText(identifier);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|