Browse Source

增加点赞动画

大爷 1 năm trước cách đây
mục cha
commit
e214e605f9

+ 4 - 3
Unity/Assets/Scripts/Codes/HotfixView/Client/UI/HUD/CreateHUD.cs

@@ -67,6 +67,8 @@ namespace ET.Client
                 {
                     compIcon.visible = true;
                     HUDComonent.listRank.visible = true;
+                    HUDComonent.pgTKLike.visible = true;
+
                     if (flag)
                     {
                         GlobalViewMgr.Instance.HeadbarView.visible = true;
@@ -227,10 +229,9 @@ namespace ET.Client
                     }
                     break;
                 case ShowUIAnimation.AniType.LikeEnergy:
-                    HUDComonent.pgTKLike.visible = true;
                     HUDComonent.pgTKLike.value = a.Param1;
-                    trans = HUDComonent.pgTKLike.GetTransition("t0");
-                    trans.Play();
+                    HUDComonent.pgTKLike.GetTransition("t0").Play();
+                    view.GetTransition("+1").Play();
                     break;
                 default:
                     Log.Error($"unknow ui animation: {a.Type}");