|
@@ -228,6 +228,8 @@ namespace GFGGame
|
|
// _ui.m_txtCount1.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg2.bonusArr[0][0]);
|
|
// _ui.m_txtCount1.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg2.bonusArr[0][0]);
|
|
// _ui.m_loaIcon1.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg2.bonusArr[0][0]).res);
|
|
// _ui.m_loaIcon1.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg2.bonusArr[0][0]).res);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private EaseType ease = EaseType.CubicOut;
|
|
private void UpdateRole(bool tween)
|
|
private void UpdateRole(bool tween)
|
|
{
|
|
{
|
|
_dressUpObjUI.ResetSceneObj(70, false, true, null, false);
|
|
_dressUpObjUI.ResetSceneObj(70, false, true, null, false);
|
|
@@ -241,18 +243,18 @@ namespace GFGGame
|
|
}
|
|
}
|
|
if (Array.IndexOf(HEAD_Y_ARR, type) >= 0)
|
|
if (Array.IndexOf(HEAD_Y_ARR, type) >= 0)
|
|
{
|
|
{
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(HEAD_Y, duration);
|
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(SCALE_MAX, SCALE_MAX), duration);
|
|
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(HEAD_Y, duration).SetEase(ease); ;
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(SCALE_MAX, SCALE_MAX), duration).SetEase(ease); ;
|
|
}
|
|
}
|
|
else if (Array.IndexOf(SHOES_Y_ARR, type) >= 0)
|
|
else if (Array.IndexOf(SHOES_Y_ARR, type) >= 0)
|
|
{
|
|
{
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(SHOES_Y, duration);
|
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(SCALE_MAX, SCALE_MAX), duration);
|
|
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(SHOES_Y, duration).SetEase(ease); ;
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(SCALE_MAX, SCALE_MAX), duration).SetEase(ease); ;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(BODY_Y, duration);
|
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(1, 1), duration);
|
|
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(BODY_Y, duration).SetEase(ease); ;
|
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(1, 1), duration).SetEase(ease); ;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|