From 84ccdee7b091e447178dc799b3d034cf874fdd02 Mon Sep 17 00:00:00 2001 From: kimura Date: Tue, 10 Aug 2021 15:44:44 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=82=A4=E3=83=B3=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scripts/CoinManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/popcorn/Assets/MyGame/Scripts/CoinManager.cs b/popcorn/Assets/MyGame/Scripts/CoinManager.cs index db849432..46f564c3 100644 --- a/popcorn/Assets/MyGame/Scripts/CoinManager.cs +++ b/popcorn/Assets/MyGame/Scripts/CoinManager.cs @@ -44,11 +44,10 @@ public class CoinManager : SingletonMonoBehaviour { ownCoin += count; // 生成枚数決定 - var spawnCount = Mathf.Min(count, 7); // 生成ポジション決め、生成 - InstantiateEffeect(coinPrefab, spawnCount, Vector3.zero, coinIconTransform.position, () => + InstantiateEffeect(coinPrefab, count, Vector3.zero, coinIconTransform.position, () => { - coinCountText.CountUpAnimation(coinTextFormat, ownCoin, duration + spawnCount * 0.1f); + coinCountText.CountUpAnimation(coinTextFormat, ownCoin, duration + count * 0.1f); callback.Invoke(); }); }