|
@@ -393,8 +393,9 @@ namespace GFGGame
|
|
|
private void UpdateProgressA(object param = null)
|
|
|
{
|
|
|
double proportion = _score / _ui.m_proScore.target.max;
|
|
|
- float width = (float)(proportion * _ui.m_proScore.target.width);
|
|
|
+ float width = (float)(proportion * (_ui.m_proScore.target.width - offsetX));
|
|
|
width = width > _ui.m_proScore.m_comBar.target.initWidth ? _ui.m_proScore.m_comBar.target.initWidth : width;
|
|
|
+ _ui.m_proScore.m_holder.visible = true;
|
|
|
GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.3f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>
|
|
|
{
|
|
|
_ui.m_proScore.m_comBar.target.width = t.value.x;
|