1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 09:16:02 +08:00

15 lines
278 B
C#

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using DG.Tweening;
public class UIFillAmount : MonoBehaviour
{
public Image fillImage;
public float tweenTime = 2;
void Start()
{
fillImage.DOFillAmount(0, tweenTime).SetLoops(-1, LoopType.Yoyo);
}
}