using UnityEngine;
using UnityEngine.UI;
///
/// 箭头指向UI
///
public class ArrowObjUI : MonoBehaviour
{
///
/// 图标
///
public Image iconImage;
///
/// 背景
///
public GameObject bkImage;
///
/// 箭头对象
///
public GameObject arrowObj;
///
/// 设置图标
///
///
public void SetIconImage(Sprite sprite)
{
if (sprite == null)
{
bkImage.gameObject.SetActive(false);
iconImage.gameObject.SetActive(false);
}
else
{
iconImage.sprite = sprite;
}
}
}