27 lines
784 B
C#
27 lines
784 B
C#
// Copyright (C) 2015-2021 gamevanilla - All rights reserved.
|
|
// This code can only be used under the standard Unity Asset Store End User License Agreement.
|
|
// A Copy of the Asset Store EULA is available at http://unity3d.com/company/legal/as_terms.
|
|
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace UltimateClean
|
|
{
|
|
/// <summary>
|
|
/// The main component of a popup containing an associated image and text. This is
|
|
/// uses in the demo's equipment popups.
|
|
/// </summary>
|
|
public class InfoPopup : MonoBehaviour
|
|
{
|
|
public Image image;
|
|
public TextMeshProUGUI text;
|
|
|
|
public void SetInfo(Sprite iconSprite, string iconText)
|
|
{
|
|
image.sprite = iconSprite;
|
|
text.text = iconText;
|
|
}
|
|
}
|
|
}
|