mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 00:57:14 +08:00
17 lines
307 B
C#
17 lines
307 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
namespace Prefab
|
||
|
|
{
|
||
|
|
[RequireComponent(typeof(Image))]
|
||
|
|
public class ImagePrefabUI:MonoBehaviour
|
||
|
|
{
|
||
|
|
public Image image;
|
||
|
|
|
||
|
|
public Sprite Icon
|
||
|
|
{
|
||
|
|
get => image.sprite;
|
||
|
|
set => image.sprite = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|