From 98da20e69535c3e86e8ed94e0ed52a0d4cdfb254 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 30 Aug 2021 12:04:49 +0900 Subject: [PATCH] =?UTF-8?q?=E8=B2=A9=E5=A3=B2=E6=99=82=E3=83=8F=E3=83=BC?= =?UTF-8?q?=E3=83=88=E5=87=A6=E7=90=86=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/marketing/Scripts/Market.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/Market.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/Market.cs index 354d3dc3..55dd0b18 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/Market.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/Market.cs @@ -24,6 +24,19 @@ public class Market : MonoBehaviour { var gameData = GameDataManager.GameData; CoinManager.Instance.ChangeCoin(gameData.coin); + HeartMeter.Instance.Initialize(new List{ + 0, + 10, + 30, + 50, + 80, + 130, + 210, + 320, + 470, + 650, + }); + HeartMeter.Instance.SetHeart(15); // 在庫数表示 stockView.SetStock(gameData.StorageTanks); @@ -86,7 +99,10 @@ public class Market : MonoBehaviour blueView.SellAction(); this.CallWaitForSeconds(2f, () => { - heartAnimation.GetHeart(); + heartAnimation.GetHeart(() => + { + HeartMeter.Instance.AddHeart(3); + }); customerController.AddMove(CustomerMovingType.WalkFrontEat); customerController.AddMove(CustomerMovingType.WalkSideEat); });