|
@@ -202,34 +202,35 @@ namespace GFGGame
|
|
|
{
|
|
|
duration = 0;
|
|
|
}
|
|
|
+ var dy = _ui.m_compHolder.target.height - 642;
|
|
|
if (Array.IndexOf(HEAD_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(HEAD_Y, duration);
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(HEAD_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(HEAD_SCALE, HEAD_SCALE), duration);
|
|
|
}
|
|
|
else if (Array.IndexOf(FA_XING_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(FA_XING_Y, duration);
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(FA_XING_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(FA_XING_SCALE, FA_XING_SCALE), duration);
|
|
|
}
|
|
|
else if (Array.IndexOf(UPPER_BODY_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(UPPER_BODY_Y, duration);
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(UPPER_BODY_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(UPPER_BODY_SCALE, UPPER_BODY_SCALE), duration);
|
|
|
}
|
|
|
else if (Array.IndexOf(LOWER_BODY_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(LOWER_BODY_Y, duration);
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(LOWER_BODY_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(LOWER_BODY_SCALE, LOWER_BODY_SCALE), duration);
|
|
|
}
|
|
|
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.TweenMoveY(SHOES_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(SHOES_SCALE, SHOES_SCALE), duration);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- _ui.m_compHolder.m_compMover.target.TweenMoveY(BODY_Y, duration);
|
|
|
+ _ui.m_compHolder.m_compMover.target.TweenMoveY(BODY_Y + dy, duration);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(BODY_SCALE, BODY_SCALE), duration);
|
|
|
}
|
|
|
}
|