From d165af063d7365e143d92c3a950a0b52e683a66e Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 23 一月 2026 15:33:29 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
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