装备系统完结,修复并加入很多
This commit is contained in:
@@ -51,6 +51,15 @@ public class materialPrefab : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void BindOwnedRequired(Sprite sprite, string displayName, int ownedAmount, int requiredAmount, bool selected, bool interactable, Action onClick)
|
||||
{
|
||||
string ownedText = ownedAmount < requiredAmount
|
||||
? $"<color=#FF4D4D>{Mathf.Max(0, ownedAmount)}</color>"
|
||||
: Mathf.Max(0, ownedAmount).ToString();
|
||||
string amountText = $"{ownedText}/{Mathf.Max(0, requiredAmount)}";
|
||||
Bind(sprite, displayName, amountText, selected, interactable, onClick);
|
||||
}
|
||||
|
||||
public void SetSelected(bool selected)
|
||||
{
|
||||
if (boarder != null)
|
||||
|
||||
Reference in New Issue
Block a user