12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class AImageFilled : MonoBehaviour
- {
- private Image image;
- private void OnEnable()
- {
- if (image == null)
- image = GetComponent<Image>();
- image.fillAmount = 0;
-
- }
- private void Update()
- {
- image.fillAmount += Time.deltaTime;
- }
- }
|