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