|
@@ -25,7 +25,7 @@ namespace GFGGame
|
|
|
private UI_LauncherUI _ui;
|
|
|
private GameObject _gameObject;
|
|
|
private GoWrapper _wrapper;
|
|
|
-
|
|
|
+ private string[] resNames = { "11", "33" };
|
|
|
/// <summary>
|
|
|
/// 每1%耗时,单位秒
|
|
|
/// </summary>
|
|
@@ -80,7 +80,6 @@ namespace GFGGame
|
|
|
_gameObject.transform.localScale = new Vector3(100, 100, 100);
|
|
|
_wrapper = new GoWrapper(_gameObject);
|
|
|
_ui.m_holder.SetNativeObject(_wrapper);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -136,8 +135,8 @@ namespace GFGGame
|
|
|
if (progress < oldValule)
|
|
|
{
|
|
|
_ui.m_progressBar1.value = progress;
|
|
|
- float posX = _ui.m_progressBar1.width * (progress / 100) - 70;
|
|
|
- _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
|
|
|
+ float posX = _ui.m_progressBar1.width * (progress / 100) + _ui.m_progressBar1.x;
|
|
|
+ _ui.m_imgAni.x = Mathf.Min(posX, _ui.m_progressBar1.width + _ui.m_progressBar1.x);
|
|
|
callback?.Invoke();
|
|
|
}
|
|
|
else
|
|
@@ -146,8 +145,8 @@ namespace GFGGame
|
|
|
float duration = (float)(progress - oldValule) * SPEED;
|
|
|
GTweener gtweener = _ui.m_progressBar1.TweenValue(progress, duration).OnUpdate((GTweener t) =>
|
|
|
{
|
|
|
- float posX = _ui.m_progressBar1.width * (t.value.x / 100) - 70;
|
|
|
- _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
|
|
|
+ float posX = _ui.m_progressBar1.width * (t.value.x / 100) + _ui.m_progressBar1.x;
|
|
|
+ _ui.m_imgAni.x = Mathf.Min(posX, _ui.m_progressBar1.width + _ui.m_progressBar1.x);
|
|
|
|
|
|
});
|
|
|
if (callback != null)
|