private void OnEnable() { localization = target as LocalizationReference; if (localization == null) { return; } localizationFound = Localization.TryGetLocalizedString(localization.ReferenceKey, out localizationContent); }
public bool TryGetNextDialog(LocalizationReference current, out LocalizationReference next) { var index = dialog.IndexOf(current); if (index == -1 || ++index >= dialog.Count) { Debug.Log(index.ToString()); next = null; return(false); } next = dialog[index]; return(true); }
public void SetContentFromLocalization(LocalizationReference localization) { localizationKey = localization; UpdateLocalization(); }
public bool IsLastDialog(LocalizationReference current) { return(dialog[dialog.Count - 1].Equals(current)); }