2d progress

This commit is contained in:
ThomasCharester committed 2026-02-26 11:57:51 +03:00
1 parent 9f026b76d6
commit 63c3549673
70 files changed
+1008 -6260

No files matched your search

+5 -5
View File
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using Code.Infrastructure.UI;
using DG.Tweening;
using PrimeTween;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -26,14 +26,14 @@ namespace Code.Example.Race.UI
}
public override void Open(Action callback = null)
{
image.DOColor(shownColor, 1f);
scoreText.DOColor(shownColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,shownColor, 1f);
Tween.Color(scoreText,shownColor, 1f).OnComplete( () => callback?.Invoke());
}
public override void Close(Action callback = null)
{
image.DOColor(hiddenColor, 1f);
scoreText.DOColor(hiddenColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,hiddenColor, 1f);
Tween.Color(scoreText,hiddenColor, 1f).OnComplete( () => callback?.Invoke());
}
}