|
@@ -279,7 +279,7 @@ namespace GFGGame
|
|
|
_ui.m_proScore.m_txtMineScore.text = string.Format("{0}{1}", RoleDataManager.roleName, (int)_score);// ((int)_score).ToString();
|
|
|
_ui.m_proScore.m_comBar.m_imgAni.visible = true;
|
|
|
|
|
|
- double proportion = _score / (_score + _targetScore);
|
|
|
+ double proportion = (_score + _targetScore) > 0 ? _score / (_score + _targetScore) : 0;
|
|
|
float width = (float)(proportion * _ui.m_proScore.target.width);
|
|
|
|
|
|
GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.5f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>
|