You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
439 B

8 months ago
using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;
/// <summary>
/// 进度条加载
/// </summary>
public class JDTLoad : MonoBehaviour
{
public void Load()
{
DOTween.To(() => GetComponent<Image>().fillAmount,
value => GetComponent<Image>().fillAmount = (float)value,
1.0, 1);
}
}