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)