From ab818c34de085219f10c99c91fcdf46f94301478 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 23 一月 2026 00:49:18 +0800
Subject: [PATCH] 422 子 【内政】命格系统 / 【内政】命格系统-客户端 - 临时

---
 Main/System/Main/MoneyMoveByPath.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Main/System/Main/MoneyMoveByPath.cs b/Main/System/Main/MoneyMoveByPath.cs
index bf052e7..9ab0326 100644
--- a/Main/System/Main/MoneyMoveByPath.cs
+++ b/Main/System/Main/MoneyMoveByPath.cs
@@ -31,7 +31,8 @@
     /// <param name="targetPosition">鐩殑鍦板潗鏍�</param>
     /// <param name="moneyType">璐у竵绫诲瀷</param>
     /// <param name="num">鎺夊嚑涓揣甯�</param>
-    public void PlayAnimation(int moneyType, int num)
+    /// <param name="type">1 璐у竵 2 鐗╁搧</param>
+    public void PlayAnimation(int id, int num, int type = 1)
     {
         int createImgCnt = 0;
         if (imgMoneys.IsNullOrEmpty())
@@ -51,7 +52,10 @@
                 //鎸傜埗鑺傜偣
                 imgMoney.transform.SetParentEx(this.transform, Vector3.zero, Quaternion.identity, Vector3.one);
                 var moneyImg = imgMoney.GetComponent<ImageEx>();
-                moneyImg.SetIconWithMoneyType(moneyType);
+                if (type == 1)
+                    moneyImg.SetIconWithMoneyType(id);
+                else
+                    moneyImg.SetItemSprite(id);
                 moneyImg.raycastTarget = false;
                 moneyImg.GetComponent<RectTransform>().sizeDelta = IconSize;
                 imgMoneys.Add(moneyImg);

--
Gitblit v1.8.0