Commit 0b7fcd2a authored by Gerard Gascón's avatar Gerard Gascón
Browse files

feature: Progress bar tween

parent 50db5ba2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1500,7 +1500,7 @@ MonoBehaviour:
  m_PreserveAspect: 0
  m_FillCenter: 1
  m_FillMethod: 1
  m_FillAmount: 1
  m_FillAmount: 0
  m_FillClockwise: 1
  m_FillOrigin: 0
  m_UseSpriteMesh: 0
+2 −1
Original line number Diff line number Diff line
using System;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

@@ -23,7 +24,7 @@ namespace Flow {

		private void UpdateFill() {
			float fillPercentage = _progressDone / (float)numberToWin;
			bar.fillAmount = fillPercentage;
			bar.DOFillAmount(fillPercentage, .25f);
		}
	}
}
 No newline at end of file