유니티 C# UI로 데미지 출력하기 간단 구현 Damage


유니티 C# UI로 데미지 출력하기 간단 구현 Damage

코드 작성 using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class HudDamageText : MonoBehaviour { public float moveSpeed = 1; public float alphaSpeed = 5; public float destroyTime = 2; public TextMeshPro text; Color alpha; public string damage; private void Start() { text = GetComponent(); text.text = damage.ToString(); alpha = text.color; Invoke("Des..


원문링크 : 유니티 C# UI로 데미지 출력하기 간단 구현 Damage