UI换了很多,spine主视觉停用
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 0
|
||||
expBottleName: "<color=#5F9B6B>\u51E1\u54C1\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: f1d975f2a96c80f45b92690b57431550, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: b4bacb7037660594e988bcb14294f656, type: 3}
|
||||
itemRarity: 1
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#5F9B6B>C\u9605\u5386\u8D44\u683C\u5076\u50CF\u53EF\u7528</color></b>\uFF0C\u63D0\u5347\u517110\u7ECF\u9A8C\u503C\u3002\u4E00\u822C\u9700\u8981500\u7ECF\u9A8C\u53471\u5230D\u7EA7\u3002"
|
||||
|
||||
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 1
|
||||
expBottleName: "<color=#4A86B8>\u4E2D\u54C1\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: f9fd35dd32d5a334198a062117a81489, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: 44c1abe7153739d429315227c0f3493d, type: 3}
|
||||
itemRarity: 2
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#4A86B8>B\u9605\u5386\u8D44\u683C\u5076\u50CF\u53EF\u7528</color></b>\uFF0C\u63D0\u5347\u517120\u7ECF\u9A8C\u503C\u3002\u4E00\u822C\u9700\u89811000\u7ECF\u9A8C\u53471\u5230A\u7EA7\u3002"
|
||||
|
||||
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 2
|
||||
expBottleName: "<color=#8A6CB0>\u4E0A\u54C1\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: 00a08daafba61f64ea75c35fec0e2df7, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: 0a7c3c46f2eb6ec4188b6622b03c296a, type: 3}
|
||||
itemRarity: 3
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#8A6CB0>A\u9605\u5386\u8D44\u683C\u5076\u50CF\u53EF\u7528</color></b>\uFF0C\u63D0\u5347\u517120\u7ECF\u9A8C\u503C\u3002\u4E00\u822C\u9700\u89812000\u7ECF\u9A8C\u53471\u5230S\u7EA7\u3002"
|
||||
|
||||
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 3
|
||||
expBottleName: "<color=#B88645>\u6781\u54C1\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: 0e7ed0e47c2cf774d9c60ef2ed161c63, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: 42ec6fdae47e3474783bdbc659fdcd5b, type: 3}
|
||||
itemRarity: 4
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#B88645>\u51C6S\u9605\u5386\u8D44\u683C\u5076\u50CF\u6548\u7528</color></b>\uFF0C\u4F5C\u4E3A\u7A81\u7834\u8017\u6750\uFF0C\u4E0D\u63D0\u4F9B\u7ECF\u9A8C\u3002\u53EF\u753127\u4E2A\u4E0A\u54C1\u590D\u6F14\u5355\u5143\u5408\u6210\u3002"
|
||||
|
||||
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 4
|
||||
expBottleName: "<color=#B84C4C>\u7EDD\u54C1\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: c671f69e3c0b99243bd1022db1bbfcd1, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: 07a61fc4925744345829ebecc8ec2d65, type: 3}
|
||||
itemRarity: 5
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#B84C4C>\u4EFB\u610F\u9605\u5386\u8D44\u683C\u5076\u50CF\u53EF\u7528</color></b>\uFF0C\u7ACB\u523B\u83B7\u5F97\u8DDD\u79BB\u5F53\u524D\u4E0B\u4E00\u7EA7\u7A81\u7834\u6240\u9700\u7684\u5269\u4F59\u7ECF\u9A8C\u503C\u3002"
|
||||
|
||||
@@ -14,7 +14,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
bottleKind: 5
|
||||
expBottleName: "<color=#D96C9E>\u4ED9\u54C1\u8D85\u80FD\u590D\u6F14\u5355\u5143</color>"
|
||||
expBottleSprite: {fileID: 21300000, guid: 107d71e23e2319d4e82f82983bac7122, type: 3}
|
||||
expBottleSprite: {fileID: 21300000, guid: 24c71fb1f433cc046b33fd3a2cbb28f6, type: 3}
|
||||
itemRarity: 6
|
||||
expBottleUsage: "\u89D2\u8272\u57F9\u517B"
|
||||
expBottleDescription: "<b><color=#D96C9E>\u4EFB\u610F\u9605\u5386\u8D44\u683C\u5076\u50CF\u53EF\u7528</color></b>\uFF0C\u7ACB\u523B\u8BA9\u5076\u50CF\u8FBE\u5230\u51C6S\u7A81\u7834\u6C34\u5E73\uFF0C\u5E76\u8865\u9F50\u4E2D\u95F4\u7701\u7565\u7684\u7A81\u7834\u6750\u6599\u53EF\u6210\u529F\u7A81\u7834\u81F3S\u3002"
|
||||
|
||||
@@ -655,7 +655,7 @@ public class storeSystem : MonoBehaviour
|
||||
&& itemSO.canbepurchased
|
||||
&& !IsAssociatedContentUnlocked(itemSO)
|
||||
&& !IsSoldOut(itemSO)
|
||||
&& HasSupportedRequirement(itemSO);
|
||||
&& HasValidPurchaseCost(itemSO);
|
||||
}
|
||||
|
||||
private void SpawnItem(storeItemSO itemSO)
|
||||
@@ -988,14 +988,15 @@ public class storeSystem : MonoBehaviour
|
||||
return null;
|
||||
}
|
||||
|
||||
private bool HasSupportedRequirement(storeItemSO itemSO)
|
||||
private bool HasValidPurchaseCost(storeItemSO itemSO)
|
||||
{
|
||||
if (itemSO == null || itemSO.costRequirements == null || itemSO.costRequirements.Count == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return GetCurrencySprite(itemSO.costRequirements[0].currencyType) != null;
|
||||
return itemSO.costRequirements[0].currencyType == storeItemSO.CurrencyType.coins
|
||||
|| itemSO.costRequirements[0].currencyType == storeItemSO.CurrencyType.material;
|
||||
}
|
||||
|
||||
private void SetPriceImageState(Image priceImage, Sprite sprite, bool shouldShow)
|
||||
@@ -1297,7 +1298,7 @@ public class storeSystem : MonoBehaviour
|
||||
|
||||
private string GetPriceAmountText(storeItemSO itemSO)
|
||||
{
|
||||
if (itemSO == null || !itemSO.canbepurchased || IsAssociatedContentUnlocked(itemSO) || !HasSupportedRequirement(itemSO))
|
||||
if (itemSO == null || !itemSO.canbepurchased || IsAssociatedContentUnlocked(itemSO) || !HasValidPurchaseCost(itemSO))
|
||||
{
|
||||
return "不可购买";
|
||||
}
|
||||
@@ -1307,7 +1308,11 @@ public class storeSystem : MonoBehaviour
|
||||
|
||||
private bool ShouldShowPriceIcon(storeItemSO itemSO)
|
||||
{
|
||||
return itemSO != null && itemSO.canbepurchased && !IsAssociatedContentUnlocked(itemSO) && HasSupportedRequirement(itemSO);
|
||||
return itemSO != null
|
||||
&& itemSO.canbepurchased
|
||||
&& !IsAssociatedContentUnlocked(itemSO)
|
||||
&& HasValidPurchaseCost(itemSO)
|
||||
&& GetCurrencySprite(itemSO.costRequirements[0].currencyType) != null;
|
||||
}
|
||||
|
||||
private bool CanPurchaseCurrentSelection(storeItemSO itemSO)
|
||||
|
||||
Reference in New Issue
Block a user