コイン表示修正

This commit is contained in:
kimura 2021-08-10 15:44:44 +09:00
parent cdab68344c
commit 84ccdee7b0
1 changed files with 2 additions and 3 deletions

View File

@ -44,11 +44,10 @@ public class CoinManager : SingletonMonoBehaviour<CoinManager>
{ {
ownCoin += count; 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(); callback.Invoke();
}); });
} }