27 lines
631 B
C#
Raw Normal View History

2026-05-06 15:07:56 +02:00
using UnityEngine;
namespace DuloGames.UI
{
public class Test_UISlotBase_Assign : MonoBehaviour
{
[SerializeField] private UISlotBase slot;
[SerializeField] private Texture texture;
[SerializeField] private Sprite sprite;
void Start()
{
if (this.slot != null)
{
if (this.texture != null)
{
this.slot.Assign(this.texture);
}
else if (this.sprite != null)
{
this.slot.Assign(this.sprite);
}
}
}
}
}