34 lines
813 B
C#
Raw Normal View History

2026-05-06 15:07:56 +02:00
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UMA;
using UMA.AssetBundles;
namespace UMA.CharacterSystem.Examples
{
public class WardrobeCollectionDemoBtn : MonoBehaviour
{
public WardrobeCollectionDemoUI thisUI;
public Button thisBtn;
public Image thisImage;
public Text thisBtnTxt;
public GameObject thisDownloaded;
public string thisUWCName = "";
public void Setup(string recipeName, Sprite img, string text, WardrobeCollectionDemoUI ui, bool downloaded = false)
{
thisUI = ui;
thisUWCName = recipeName;
thisImage.sprite = img;
thisBtnTxt.text = text;
thisDownloaded.SetActive(downloaded);
thisBtn.onClick.AddListener(GetWardrobeCollection);
}
public void GetWardrobeCollection()
{
thisUI.LoadSelectedCollection(thisUWCName);
}
}
}