16 lines
376 B
C#
16 lines
376 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class FillValueNumber : MonoBehaviour
|
|
{
|
|
public Image TargetImage;
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
float amount = TargetImage.fillAmount * 100;
|
|
gameObject.GetComponent<Text>().text = amount.ToString("F0");
|
|
}
|
|
}
|