调整一下,开始计算横条大小
This commit is contained in:
parent
56355509b6
commit
bede064056
@ -92,13 +92,13 @@ namespace GameLogic
|
|||||||
public void UpdateScale(long value)
|
public void UpdateScale(long value)
|
||||||
{
|
{
|
||||||
// 避免除0
|
// 避免除0
|
||||||
if (m_AllPush == 0)
|
if (value == 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 基于当前总值,计算自己scale大小
|
// 基于当前总值,计算自己scale大小
|
||||||
var results = this.m_AllPush / (float)m_AllPush;
|
var results = this.m_AllPush / (float)value;
|
||||||
|
|
||||||
Log.Debug(results);
|
Log.Debug(results);
|
||||||
|
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
"GUID:8f58f15387c7a6f4fad9857024eb47f7",
|
"GUID:8f58f15387c7a6f4fad9857024eb47f7",
|
||||||
"GUID:24c092aee38482f4e80715eaa8148782",
|
"GUID:24c092aee38482f4e80715eaa8148782",
|
||||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||||
"GUID:e34a5702dd353724aa315fb8011f08c3",
|
|
||||||
"GUID:15fc0a57446b3144c949da3e2b9737a9",
|
"GUID:15fc0a57446b3144c949da3e2b9737a9",
|
||||||
"GUID:8b65d8710c3b04373a41cbf6b777ee65",
|
"GUID:8b65d8710c3b04373a41cbf6b777ee65",
|
||||||
"GUID:d8b63aba1907145bea998dd612889d6b",
|
"GUID:d8b63aba1907145bea998dd612889d6b",
|
||||||
"GUID:9e04c6f1d83f64c85a18cbf2fcccc31c",
|
"GUID:9e04c6f1d83f64c85a18cbf2fcccc31c",
|
||||||
"GUID:f06555f75b070af458a003d92f9efb00"
|
"GUID:f06555f75b070af458a003d92f9efb00",
|
||||||
|
"GUID:e34a5702dd353724aa315fb8011f08c3"
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
|
@ -219,10 +219,10 @@ namespace GameLogic
|
|||||||
#region 游戏逻辑
|
#region 游戏逻辑
|
||||||
public void OnUpdateGameTeam()
|
public void OnUpdateGameTeam()
|
||||||
{
|
{
|
||||||
if (!GetGameState())
|
//if (!GetGameState())
|
||||||
{
|
//{
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
long allValue = 0;
|
long allValue = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user