From bede0640563c7c3c1e28a5159837b86ac4a25ce9 Mon Sep 17 00:00:00 2001 From: "SD-20250424WZPW\\Administrator" Date: Fri, 25 Apr 2025 16:15:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=80=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E8=AE=A1=E7=AE=97=E6=A8=AA=E6=9D=A1=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs | 4 ++-- .../Assets/GameScripts/HotFix/GameLogic/GameLogic.asmdef | 4 ++-- .../HotFix/GameLogic/Manager/DataGameSceneManager.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index 72138e59..4b96e62e 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -92,13 +92,13 @@ namespace GameLogic public void UpdateScale(long value) { // 避免除0 - if (m_AllPush == 0) + if (value == 0) { return; } // 基于当前总值,计算自己scale大小 - var results = this.m_AllPush / (float)m_AllPush; + var results = this.m_AllPush / (float)value; Log.Debug(results); diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameLogic.asmdef b/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameLogic.asmdef index 89e63d85..3600ccc6 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameLogic.asmdef +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/GameLogic.asmdef @@ -7,12 +7,12 @@ "GUID:8f58f15387c7a6f4fad9857024eb47f7", "GUID:24c092aee38482f4e80715eaa8148782", "GUID:f51ebe6a0ceec4240a699833d6309b23", - "GUID:e34a5702dd353724aa315fb8011f08c3", "GUID:15fc0a57446b3144c949da3e2b9737a9", "GUID:8b65d8710c3b04373a41cbf6b777ee65", "GUID:d8b63aba1907145bea998dd612889d6b", "GUID:9e04c6f1d83f64c85a18cbf2fcccc31c", - "GUID:f06555f75b070af458a003d92f9efb00" + "GUID:f06555f75b070af458a003d92f9efb00", + "GUID:e34a5702dd353724aa315fb8011f08c3" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index 87f0285b..b4cb6dad 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -219,10 +219,10 @@ namespace GameLogic #region 游戏逻辑 public void OnUpdateGameTeam() { - if (!GetGameState()) - { - return; - } + //if (!GetGameState()) + //{ + // return; + //} long allValue = 0;