12345678910111213141516171819 |
- using UnityEngine;
- using System.Collections;
- using ICTS.Localization;
- using TMPro;
- public class CommonInfoDialog : ScreenBase
- {
- public TextMeshProUGUI title, text;
- public void SetTitleAndText(string titleKey, string textKey, object[] textParams = null)
- {
- title.text = Localization.instance.Get(titleKey);
- text.text = Localization.instance.Get(textKey);
- if (textParams != null)
- {
- text.text = string.Format(text.text, textParams);
- }
- }
- }
|