diff --git a/popcorn/Assets/MyGame/Scripts/CoinManager.cs b/popcorn/Assets/MyGame/Scripts/CoinManager.cs index 6a125175..db849432 100644 --- a/popcorn/Assets/MyGame/Scripts/CoinManager.cs +++ b/popcorn/Assets/MyGame/Scripts/CoinManager.cs @@ -1,6 +1,7 @@ using System; using System.Collections; using System.Collections.Generic; +using TMPro; using UnityEngine; using UnityEngine.UI; @@ -55,6 +56,7 @@ public class CoinManager : SingletonMonoBehaviour private void InstantiateEffeect(RectTransform prefab, int count, Vector3 from, Vector3 to, Action callback) { var effect = Instantiate(prefab, Vector3.zero, Quaternion.identity, rootTransform); + effect.GetComponentInChildren().text = count.ToString(); // アニメ50フレーム this.CallWaitForSeconds(1.0f, () => { // コインが到着したらSEとバイブ再生。コインはずみアニメーションを再生