UIHurtNumController.cs 291 B

123456789101112131415161718192021
  1. using System;
  2. using UnityEngine;
  3. public class UIHurtNumController : MonoBehaviour
  4. {
  5. private void Start()
  6. {
  7. }
  8. private void Update()
  9. {
  10. }
  11. public void SetHurtNum(int damage)
  12. {
  13. this.label.text = damage.ToString();
  14. }
  15. [SerializeField]
  16. private UILabel label;
  17. }