private void OnEnable()
        {
            localization = target as LocalizationReference;
            if (localization == null)
            {
                return;
            }

            localizationFound = Localization.TryGetLocalizedString(localization.ReferenceKey, out localizationContent);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void SetContentFromLocalization(LocalizationReference localization)
 {
     localizationKey = localization;
     UpdateLocalization();
 }
Esempio n. 4
0
 public bool IsLastDialog(LocalizationReference current)
 {
     return(dialog[dialog.Count - 1].Equals(current));
 }