Exemplo n.º 1
0
        protected override bool TryEventInfoTranslationLookup(string assetName, EventInfo.Param param, out string result)
        {
            result = string.Empty;
            var loader = Localize.Translate.Manager.LoadScene(Localize.Translate.Manager.SCENE_ID.EXTRA_EVENT, null);
            var match  = string.Empty;

            if (int.TryParse(Path.GetFileNameWithoutExtension(assetName), out var id))
            {
                loader?.SafeGet(id)?.SafeGetText(param.ID)?.SafeProc(t => match = t);
                result = match;
            }
            return(!string.IsNullOrEmpty(match) || base.TryEventInfoTranslationLookup(assetName, param, out result));
        }
 protected virtual bool TryEventInfoTranslationLookup(string assetName, EventInfo.Param param, out string result)
 {
     result = null;
     return(false);
 }