فهرست منبع

升级数字动画

liao 5 ماه پیش
والد
کامیت
4f3a4196e6

+ 1 - 1
Assets/GPUECSAnimationBaker/Samples/Shaders/GPUECSAnimator_URP_SimpleShader.shadergraph.meta

@@ -5,6 +5,6 @@ ScriptedImporter:
   externalObjects: {}
   serializedVersion: 2
   userData: 
-  assetBundleName: fb010shader
+  assetBundleName: 
   assetBundleVariant: 
   script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

+ 6 - 1
Assets/Res/UI/HeroUpTxtEft.prefab

@@ -170,5 +170,10 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 4810a0857c909354fa00c3aafdeac753, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  data: []
+  data:
+  - key: txtEft
+    gameObject: {fileID: 3992509306590940860}
+    isAssetBundle: 0
+    isList: 0
+    ListCollectorDatas: []
   isAssetBundle: 1

+ 16 - 4
Assets/Scripts/GameUI/UI/Hero/HeroDetailPanel.cs

@@ -293,25 +293,37 @@ namespace Fort23.Mono
         {
             if (txtHP.text != heroInfo.hp.Value.ToStringEx())
             {
+                long old = long.Parse(txtHP.text);
                 txtHP.text = heroInfo.hp.Value.ToStringEx();
                 if(!isInit)
-                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null, 
+                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
+                        {
+                            heroUpTxtEft.txtEft.text = "+" + (heroInfo.hp.Value - old).ToStringEx();
+                        }, 
                         poolName: "HeroUpTxtEft", root: eftNumPos[0] as RectTransform);
             }
 
             if (txtATK.text != heroInfo.attack.Value.ToStringEx())
             {
+                long old = long.Parse(txtATK.text);
                 txtATK.text = heroInfo.attack.Value.ToStringEx();
                 if(!isInit)
-                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null,
+                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
+                        {
+                            heroUpTxtEft.txtEft.text = "+" + (heroInfo.attack.Value - old).ToStringEx();
+                        },
                         poolName: "HeroUpTxtEft", root: eftNumPos[1] as RectTransform);
             }
 
             if (txtDEF.text != heroInfo.defense.Value.ToStringEx())
             {
+                long old = long.Parse(txtDEF.text);
                 txtDEF.text = heroInfo.defense.Value.ToStringEx();
                 if(!isInit)
-                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null,
+                    await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
+                        {
+                            heroUpTxtEft.txtEft.text = "+" + (heroInfo.defense.Value - old).ToStringEx();
+                        },
                         poolName: "HeroUpTxtEft", root: eftNumPos[2] as RectTransform);
             }
 
@@ -347,7 +359,7 @@ namespace Fort23.Mono
                 btnUpgrade.GetComponent<MyImage>().icon_name = "btn_l_Green";
             }
 
-            txtUpgrade.text = redColorStar + curExp + redColorEnd + "/" + costExp;
+            txtUpgrade.text = redColorStar + curExp.ToStringEx() + redColorEnd + "/" + costExp.ToStringEx();
             
             
             curHeroCount = BagController.Instance.GetItemInfo(heroInfo.modelConfig.itemID).count.Value;

+ 13 - 0
Assets/Scripts/GameUI/UI/Hero/HeroUpTxtEftData.cs

@@ -3,11 +3,24 @@ using Fort23.UTool;
 using UnityEngine.UI;
 using UnityEngine;
 using System.Collections.Generic;
+using TMPro;
+
 namespace Fort23.Mono
 {
 	public partial class HeroUpTxtEft 
 	{
 	  #region 自定义数据 
+	  private TextMeshProUGUI _txtEft;
+	  public TextMeshProUGUI txtEft
+	   {
+	   get{
+	      if (_txtEft == null)
+	       {
+	         _txtEft  = GetUIUnit<TextMeshProUGUI>("txtEft"); 
+	       }
+	      return _txtEft;
+	     }
+	   }
 	  #endregion 自定义数据结束 
 	 public override async CTask SetUIGameObject(GameObject gObjectPoolInterface)
 	{

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
Assets/StreamingAssets/assetConfig.txt


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است