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

@@ -1,4 +1,4 @@
using DG.Tweening;
using PrimeTween;
using UnityEngine;
namespace Code.Example.Race.Racer.Car
@@ -15,7 +15,7 @@ namespace Code.Example.Race.Racer.Car
{
var wheelRotation = wheel.localRotation.eulerAngles;
wheelRotation.y = amount;
wheel.DOLocalRotate(wheelRotation, 1f);
Tween.LocalRotation(wheel,wheelRotation, 1f);
// wheel.localRotation = Quaternion.Euler(wheelRotation);
}
}
+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());
}
}
+5 -5
View File
@@ -1,6 +1,6 @@
using System;
using Code.Infrastructure.UI;
using DG.Tweening;
using PrimeTween;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -17,14 +17,14 @@ namespace Code.Example.Race.UI
public void SetText(string text) => winText.text = text;
public override void Open(Action callback = null)
{
image.DOColor(shownColor, 1f);
winText.DOColor(shownColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,shownColor, 1f);
Tween.Color(winText,shownColor, 1f).OnComplete( () => callback?.Invoke());
}
public override void Close(Action callback = null)
{
image.DOColor(hiddenColor, 1f);
winText.DOColor(hiddenColor, 1f).onComplete = () => callback?.Invoke();
Tween.Color(image,hiddenColor, 1f);
Tween.Color(winText,hiddenColor, 1f).OnComplete( () => callback?.Invoke());
}
}
}