22 lines
502 B
C#
22 lines
502 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace TON
|
|
{
|
|
// View
|
|
public class RoulettePiece : MonoBehaviour
|
|
{
|
|
[SerializeField] private Image imageIcon;
|
|
[SerializeField] private TextMeshProUGUI textDescription;
|
|
|
|
public void Setup(RoulettePieceData pieceData)
|
|
{
|
|
imageIcon.sprite = pieceData.icon;
|
|
textDescription.text = pieceData.description;
|
|
}
|
|
}
|
|
}
|