using UnityEngine; using System.Collections; using ICTS.Localization; using TMPro; /// /// This component is responsible for choosing a random dialog to be displayed before the player starts playing /// 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]); } }