From 612880fe10abae3ff69d86d6214326612786a998 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 6 Aug 2021 14:36:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=82=A4=E3=83=B3=E5=85=A5=E6=89=8B?= =?UTF-8?q?=E6=9E=9A=E6=95=B0=E3=82=92UI=E3=81=AB=E5=8F=8D=E6=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scripts/CoinManager.cs | 2 ++ 1 file changed, 2 insertions(+) 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とバイブ再生。コインはずみアニメーションを再生