浏览代码

[Bot] Automated dotnet-format update

/UI
Ciro Continisio 4 年前
当前提交
294b77e0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      UOP1_Project/Assets/Scripts/UI/FadeManager.cs

5
UOP1_Project/Assets/Scripts/UI/FadeManager.cs


private IEnumerator FadeCoroutine(bool fadeIn, float duration, Color endColor = default)
{
Color startColor = _imageComponent.color;
if (fadeIn) endColor = Color.clear;
if (fadeIn)
endColor = Color.clear;
float totalTime = 0f;

_imageComponent.color = Color.Lerp(startColor, endColor, totalTime/duration);
_imageComponent.color = Color.Lerp(startColor, endColor, totalTime / duration);
yield return null;
}

正在加载...
取消
保存