From c87b29c9bc11af7327b185b166c7053a6e76ca3c Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Fri, 27 Jun 2025 17:25:12 +0800 Subject: [PATCH] 1 --- .../GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs | 10 +++++----- .../GameScripts/HotFix/GameLogic/ProtCust/ProtCust.cs | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index ed6f8967..066509e9 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -49,7 +49,7 @@ namespace GameLogic private List m_ListUnitPlayDatas = new List(); private float m_AddPush = 0.1f; // 初始推力值 - public long m_AllPush = 0; // 当前总值 + public float m_AllPush = 0; // 当前总值 private int m_AllAddPush = 0;//永久增加推力值 private int m_AssetID = 0; // 资源ID,用于加载资源 @@ -229,7 +229,7 @@ namespace GameLogic } //Log.Debug("增加推力:" + m_AddPush); - m_AllPush += (int)m_AddPush; + m_AllPush += m_AddPush; // 检测个人赛道推力值是否到达可以切换形象 SwitchActor(); @@ -344,7 +344,7 @@ namespace GameLogic SetCurrenFill(); // 直接扣 - m_AllPush += (int)buff.addPower / 5; + m_AllPush += buff.addPower / 5; if (m_AllPush <= 0) { @@ -427,7 +427,7 @@ namespace GameLogic eGo.gameObject.SetActive(true); eGo.transform.DOLocalMoveX(0, 3f).OnComplete(async () => { - await UniTask.Delay(2000); + await UniTask.Delay(12000); // 特效播放完毕后销毁 GameObject.Destroy(eGo); }); @@ -615,7 +615,7 @@ namespace GameLogic // 直接扣 - m_AllPush += (int)buff.addPower; + m_AllPush += buff.addPower; if (m_AllPush <= 0) { diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/ProtCust/ProtCust.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/ProtCust/ProtCust.cs index d1949d7d..cf30094b 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/ProtCust/ProtCust.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/ProtCust/ProtCust.cs @@ -632,11 +632,10 @@ namespace GameLogic { Dictionary dic = new Dictionary(); dic.Add("action", "list"); - //dic.Add("roomId", EventConts.RoomData.room_id); - dic.Add("roomId", "11111"); - string m_Json = HttpSendHelper.HttpPostRequest(EventConts.GetAckTest, dic.ToJson()); + dic.Add("roomId", EventConts.RoomData.room_id); + //dic.Add("roomId", "11111"); + string m_Json = HttpSendHelper.HttpPostRequest(EventConts.GetAck, dic.ToJson()); - Log.Debug(m_Json); // 先根据解析出来的类型处理 var mj = JObject.Parse(m_Json); string Info = mj["data"].ToString();