Skip to content

Commit fe3c5c8

Browse files
committed
[Bot] Automated dotnet-format update
1 parent 763868d commit fe3c5c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

UOP1_Project/Assets/Scripts/UI/FadeManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ private void OnDisable()
2626
private IEnumerator FadeCoroutine(bool fadeIn, float duration, Color endColor = default)
2727
{
2828
Color startColor = _imageComponent.color;
29-
if (fadeIn) endColor = Color.clear;
29+
if (fadeIn)
30+
endColor = Color.clear;
3031

3132
float totalTime = 0f;
3233

3334
while (totalTime <= duration)
3435
{
3536
totalTime += Time.deltaTime;
36-
_imageComponent.color = Color.Lerp(startColor, endColor, totalTime/duration);
37+
_imageComponent.color = Color.Lerp(startColor, endColor, totalTime / duration);
3738

3839
yield return null;
3940
}

0 commit comments

Comments
 (0)