فهرست منبع

修改曲线参数

leiyasi 1 سال پیش
والد
کامیت
ac2e1c7b9a

+ 8 - 6
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -228,6 +228,8 @@ namespace GFGGame
             // _ui.m_txtCount1.text = "" + ItemDataManager.GetItemNum(luckyBoxCfg2.bonusArr[0][0]);
             // _ui.m_loaIcon1.icon = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg2.bonusArr[0][0]).res);
         }
+
+        private EaseType ease = EaseType.CubicOut;
         private void UpdateRole(bool tween)
         {
             _dressUpObjUI.ResetSceneObj(70, false, true, null, false);
@@ -241,18 +243,18 @@ namespace GFGGame
             }
             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)
             {
-                _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
             {
-                _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); ;
             }
         }
 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -25,7 +25,7 @@ namespace GFGGame
         private const float SHOES_SCALE = 2.5f;
         private const float BODY_SCALE = 1f;
 
-        private const float DURATION = 0.55f;
+        private const float DURATION = 0.6f;
 
         private readonly int[] HEAD_Y_ARR = new int[] { ConstDressUpItemType.TOU_SHI, ConstDressUpItemType.ER_SHI, ConstDressUpItemType.JING_SHI, ConstDressUpItemType.ZHUANG_RONG };
         private readonly int[] FA_XING_Y_ARR = new int[] { ConstDressUpItemType.FA_XING };
@@ -191,7 +191,7 @@ namespace GFGGame
             UI_ClothingListItem.ProxyEnd();
         }
 
-        private EaseType ease = EaseType.QuartOut;
+        private EaseType ease = EaseType.CubicOut;
         private void UpdateRole(bool tween)
         {
             _dressUpObjUI.ResetSceneObj(45, true, true, null, false);