hellbound/Assets/Sources/I2/Localization/Scripts/Utils/RegisterCallback_AllowSyncF...

27 lines
667 B
C#
Raw Normal View History

2021-11-26 11:16:25 +03:00
using UnityEngine;
namespace I2.Loc
{
public class RegisterCallback_AllowSyncFromGoogle : MonoBehaviour
{
public void Awake()
{
LocalizationManager.Callback_AllowSyncFromGoogle = AllowSyncFromGoogle;
}
public void OnEnable()
{
LocalizationManager.Callback_AllowSyncFromGoogle = AllowSyncFromGoogle;
}
public void OnDisable()
{
LocalizationManager.Callback_AllowSyncFromGoogle = null;
}
public virtual bool AllowSyncFromGoogle(LanguageSourceData Source)
{
return true;
}
}
}