优化武器商品描述文本、修复敌人子弹无法击中玩家的bug

This commit is contained in:
2026-09-26 22:55:52 +08:00
parent 051c075183
commit 91b8e177c5
5 changed files with 75 additions and 79 deletions
@@ -29,13 +29,7 @@ namespace SepCore.UI
_iconArea.OnInit(data.Icon, data.Rarity);
_titleText.text = data.Name;
_typeText.text = data.ItemType switch
{
ItemType.None => "error",
ItemType.Weapon => "武器",
ItemType.Prop => "道具",
_ => throw new ArgumentOutOfRangeException()
};
_typeText.text = data.TypeName;
_descriptionText.text = data.Description;
_costText.text = $"{data.Price} <sprite name=\"coin\" index=0>";
}