From 7863cba7fbbed46624eda00489565f7381d73c6b Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Fri, 27 Jun 2025 11:15:15 +0800 Subject: [PATCH] 1 --- .../HotFix/GameLogic/Manager/DataGameSceneManager.cs | 5 ++++- .../Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index 38ee462f..d96f0784 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -857,7 +857,10 @@ namespace GameLogic DataGameSceneManager.Instance.m_TeamSortList[i].AddBuff(m_Buff1, unitPlayerData, giftConfig); } - + if (hItemActors[0].actor == null) + { + return; + } // 生成手指特效 if (hItemActors[0].actor == actor) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs index 8ae18342..dc0654ae 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGiftItem.cs @@ -25,7 +25,7 @@ namespace GameLogic private void Awake() { - this.gameObject.GetComponent().sortingLayerName = "UI02"; + //this.gameObject.GetComponent().sortingLayerName = "UI02"; } public async void OnInit(UnitPlayerData unitPlayerData, GiftConfig giftConfig, int num)