リザルトパーフェクト時の表示を変更

This commit is contained in:
kimura 2021-11-12 10:48:40 +09:00
parent c2ce96544a
commit 67486af404
4 changed files with 5 additions and 6 deletions

View File

@ -1 +1 @@
oZHfCs7SEPFZ7PATuTmLLCXSyHiCLqSbOQJqvzKURGDSKRP9QoHAwCQ2BfWEN7Ta fCqn3xSyJAbOiUdLXsQdrJ6xHuV+b97Wp3UnP5NejTyX6wIQzkAz64YCYTdBIIJc

View File

@ -1 +1 @@
y9xqDZPojFZWMIzo/qYLur4UDA7BM8IF4MiH82qjgcU6R3OCZ35fS8DeGRuvSHJ8u97svxcv1dhnSGIXUnXjr1synR1Ah8LtkYS65R6CwYbVbw4vIWl2C8BVN9asmnsjlfIqpJ7DqUUKdgpsaGN7XO4EzOwcNbtl/LHzzAwc+QITRFYyQiCPyZuqU9x9NSF2AXYffSdA9Lq0+1KYgIbkM6gCXW42DpgPBwR2zC2TUSdFji7jGBbBcFbprvkQIbG009xhN2fz2ZXRC6kmoqKJS6bj4qP73BtGN9XmEFooGmkr1q4fuhYDJz+4EKw9zEwENcX0fZWAm4ctdROpLUI0EQ== +zGxRrfpc+ne+VVFrMKdo77oO6dguySjNSusUyULBUH6/Hbf2e/PCW1P3u0rf0seEB6wBkgHBEonQPBgSDnWCW7TpYBkf5wATErjCNUx5VjOAKwJ8KOLeVvEKrlAeHYuw8jW8KO/iVLZTREEmywMNfAcfZLQfziqlKDka7VB7tD6WKQym3nBbdr1b6HEU7PJstoTyuT1z+whqior9eQitgq3thWBhhLunzHMOlFli3doaEuqkR0Ow5txzphm4cRrg6irFkFRWYv6/GBiG+UCP3H23gA7eCmCJF7YGBWRoQ8d+X3QSyjWDJs6pcfmTyXS1vlk4mi715HDGEO7ocBKdBqUWOthHUYbU6Dd9FABGpESJbSGif2cy2z4WC6ztEuiMKKyDU2lt7wIYv9FskBtw9iBmM/fzyveGeH3SRXJ9cyaBBn1/2FkcLl0f/FRjyOTCYuQIBDSlago5RzahLYdL6L1vLBgTHXcXN2wnTaD+GNTZNgRArIcEBXiEUD7zjbeh+pAciZKkmNUyNyYdLpdXPb0pojMqIrsPeLEX6eOfait9kxVcPr7vHh2fgNZC8yyhpGY6J/pb0qvpwq7uVi1lA==

View File

@ -8,7 +8,6 @@ using UnityEngine.UI;
public class CookingResult : MonoBehaviour public class CookingResult : MonoBehaviour
{ {
private static readonly string RarityTextFormat = "売値 {0}% UP";
private static readonly string BulkOrderRarityTextFormat = "大成功ボーナス獲得"; private static readonly string BulkOrderRarityTextFormat = "大成功ボーナス獲得";
private static readonly string QuantityTextFormat = "x{0}"; private static readonly string QuantityTextFormat = "x{0}";
[SerializeField] private GameObject smokeEffect; [SerializeField] private GameObject smokeEffect;
@ -145,8 +144,8 @@ public class CookingResult : MonoBehaviour
popcornText.text = recipe.name; popcornText.text = recipe.name;
popcornTextPerfect.text = recipe.name; popcornTextPerfect.text = recipe.name;
quantityText.text = string.Format(QuantityTextFormat, recipe.volume); quantityText.text = string.Format(QuantityTextFormat, recipe.volume);
var rarityFormat = viewType == ProductViewType.Default ? RarityTextFormat : BulkOrderRarityTextFormat; var rarityFormat = viewType == ProductViewType.Default ? rarity.text : BulkOrderRarityTextFormat;
rarityText.text = string.Format(rarityFormat, rarity.rate - 100); rarityText.text = rarityFormat;
rarityView.SetRarity(rarity.Rarity); rarityView.SetRarity(rarity.Rarity);
popcornTarget.DestroyAllChildrens(); popcornTarget.DestroyAllChildrens();
Instantiate(recipe.GetLargePrefab(), popcornTarget); Instantiate(recipe.GetLargePrefab(), popcornTarget);

View File

@ -162,8 +162,8 @@ public sealed class MissionData
public sealed class RarityData public sealed class RarityData
{ {
public int id; public int id;
public int rate;
public int bulkOrderBonus; public int bulkOrderBonus;
public string text;
public ProductRarity Rarity => (ProductRarity)id; public ProductRarity Rarity => (ProductRarity)id;
} }