SamsonGame/Assets/Sources/I2/Localization/Scripts/Utils/RegisterGlobalParameters.cs

28 lines
640 B
C#
Raw Permalink Normal View History

2021-12-29 20:50:11 +03:00
using UnityEngine;
namespace I2.Loc
{
public class RegisterGlobalParameters : MonoBehaviour, ILocalizationParamsManager
{
public virtual void OnEnable()
{
if (!LocalizationManager.ParamManagers.Contains(this))
{
LocalizationManager.ParamManagers.Add(this);
LocalizationManager.LocalizeAll(true);
}
}
public virtual void OnDisable()
{
LocalizationManager.ParamManagers.Remove(this);
}
public virtual string GetParameterValue( string ParamName )
{
return null;
}
}
}