コイン表示修正
This commit is contained in:
parent
cdab68344c
commit
84ccdee7b0
|
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue