diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index 982f2e49..dcc8de23 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -52,6 +52,7 @@ namespace GameLogic private int m_AssetID = 0; // 资源ID,用于加载资源 private int textureId = 0; + public int WaiXingCount = 0; private Dictionary> m_Buffs = new Dictionary>(); //自身Buff列表 @@ -255,6 +256,7 @@ namespace GameLogic private void RefreshUI() { m_tmpAllValue.text = ((int)m_AllPush).ToString(); + m_tmpWaiXing.text = WaiXingCount.ToString(); } List m_ListEgo = new List(); diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index 3b7ee2c3..d1bf233d 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -638,7 +638,6 @@ namespace GameLogic var item = m_TempList[i]; // 添加减速Buff Buff m_Buff1 = new Buff(); - Log.Debug("????????" + giftConfig.AddPower * num); m_Buff1.OnInit(giftConfig.Id, giftConfig.AddPower * num, giftConfig.TimerLen, giftConfig.AddGiftScore, num); item.AddBuff(m_Buff1, unitPlayerData, giftConfig); @@ -736,8 +735,9 @@ namespace GameLogic // 添加减速Buff给到 var eGo = GameModule.Resource.LoadGameObject("WXSP"); + eGo.transform.SetParent(actor.GetRect().transform); eGo.transform.position = actor.GetRect().transform.position; - eGo.transform.localPosition = new Vector3(1500, 0, 0); + eGo.transform.localPosition = new Vector3(-1500, 0, 0); eGo.transform.localScale = Vector3.one; // 移动特效 @@ -745,7 +745,10 @@ namespace GameLogic { GameObject.Destroy(eGo); + actor.WaiXingCount++; + var eGo1 = GameModule.Resource.LoadGameObject("WXSP_Birth"); + eGo1.transform.SetParent(actor.GetRect().transform); eGo1.transform.position = actor.GetRect().transform.position; eGo1.transform.localPosition = new Vector3(0, 0, 0); eGo1.transform.localScale = Vector3.one;