21 lines
556 B
C#
21 lines
556 B
C#
using SepCore.Definition;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace SepCore.UI
|
|
{
|
|
public class RarityPanel : MonoBehaviour
|
|
{
|
|
[SerializeField] private RarityPalette _palette = null;
|
|
[SerializeField] private Image _background = null;
|
|
[SerializeField] private Image _border = null;
|
|
|
|
public void SetRarity(Rarity rarity)
|
|
{
|
|
RarityPalette.Colors colors = _palette.Get(rarity);
|
|
_background.color = colors.CardBackground;
|
|
_border.color = colors.Border;
|
|
}
|
|
}
|
|
}
|