调整一下,开始计算横条大小

This commit is contained in:
SD-20250424WZPW\Administrator 2025-04-25 16:15:20 +08:00
parent 56355509b6
commit bede064056
3 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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": [],

View File

@ -219,10 +219,10 @@ namespace GameLogic
#region
public void OnUpdateGameTeam()
{
if (!GetGameState())
{
return;
}
//if (!GetGameState())
//{
// return;
//}
long allValue = 0;