asset integration 50%

This commit is contained in:
2026-03-29 02:27:55 +05:30
parent 3108262326
commit b8ce9120d5
1691 changed files with 1192616 additions and 262 deletions
+22
View File
@@ -0,0 +1,22 @@
using UnityEngine;
using DG.Tweening;
using UnityEngine.UI;
[RequireComponent(typeof(Image))]
public class ImageBlinker : MonoBehaviour
{
public float duration = 0.5f;
public Ease ease = Ease.InOutSine;
public float from = 0f;
public float to = 1f;
public int loops = -1;
public LoopType loopType = LoopType.Yoyo;
void Start()
{
var image = GetComponent<Image>();
var c = image.color;
c.a = from;
image.color = c;
image.DOFade(to, duration).SetEase(ease).SetLoops(loops, loopType);
}
}