public LocalizedEntry(LocalizationFile.DataEntry locaEntry, LocalizationDB db) { var finalText = locaEntry.Value; //the space after <n> is intended, otherwise there is an empty space after new line (dunno why) Text = finalText.Replace("<n> ", "\n").Trim(); RawText = locaEntry.Value; }
private static bool CheckInstance() { if (_instance == null) { //assumes that LocalizationDB sits directly under "Resources" _instance = Resources.Load <LocalizationDB>(nameof(LocalizationDB)); if (_instance) { _instance.Init(); return(true); } Debug.LogWarning("Couldn't find LocalizationDB. This is normal if the projects opens for the first time. Otherwise check if LocalizationDB exists."); return(false); } return(true); }