1234567891011121314151617181920 |
- using UnityEngine;
- using System.Collections;
- using ICTS.Localization;
- using TMPro;
- /// <summary>
- /// This component is responsible for choosing a random dialog to be displayed before the player starts playing
- /// </summary>
- public class RandomPromoInfo : ScreenBase
- {
- public TextMeshProUGUI info;
- public string[] infoKeys;
- public override void Show()
- {
- base.Show();
- int index = Random.Range(0, infoKeys.Length);
- info.text = Localization.instance.Get(infoKeys[index]);
- }
- }
|