优化道具稀有度的 UI 表现
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user