This commit is contained in:
GL 2024-12-20 10:42:38 +08:00
commit 4522a4af91
6 changed files with 20 additions and 17 deletions

View File

@ -32,9 +32,9 @@ public class Scene_baoshidao : MonoBehaviour
go.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0");
if (info.ActivateCount > 0)
if (info.activate_count > 0)
{
for (int temp = info.ActivateCount; temp > 0; temp--)
for (int temp = info.activate_count; temp > 0; temp--)
{
go.OnClick();
}

View File

@ -32,9 +32,9 @@ public class Scene_baoshikuang : MonoBehaviour
roomController.RoomId = info.Id;
// 如果 ActivateCount 大于 0则调用 OnClick 方法
if (info.ActivateCount > 0)
if (info.activate_count > 0)
{
for (int temp = 0; temp < info.ActivateCount; temp++) // 使用更常见的循环方式
for (int temp = 0; temp < info.activate_count; temp++) // 使用更常见的循环方式
{
roomController.OnClick();
}

View File

@ -29,11 +29,11 @@ public class Scene_jinbikuang : MonoBehaviour
go.RoomId = info.Id;
go.ActivateValue = info.Price;
if (info.ActivateCount > 0)
if (info.activate_count > 0)
{
for (int temp = info.ActivateCount; temp > 0; temp--)
for (int temp = info.activate_count; temp > 0; temp--)
{
go.OnClick();
go.add_fish();
}
}

View File

@ -31,12 +31,13 @@ public class scene_jingshadao : MonoBehaviour
go.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0");
go.shipNumberTextPro.text =info.ActivateCount.ToString() + "/" + info.ActivateLimit;
go.shipNumberTextPro.text =info.activate_count.ToString() + "/" + info.ActivateLimit;
if (info.ActivateCount > 0)
Debug.LogError("!!!!!!!!!!info.ActivateCount" + info.activate_count);
if (info.activate_count > 0)
{
for (int temp = info.ActivateCount; temp > 0; temp--)
Debug.LogError("22222222info.ActivateCount"+ info.activate_count);
for (int temp = 0; temp < info.activate_count; temp++)
{
go.OnClick();
}

View File

@ -130,12 +130,14 @@ public class roomcontroller : MonoBehaviour
public async void OnClick()
{
if (!canClick)
{
return;
}
if (!canClick)
{
return;
}
Debug.Log("OnClick");
// Debug.Log("OnClick");
if (fishMan == null)

View File

@ -46,5 +46,5 @@ public class MinngConfigData
public float Yield { get; set; }
public int YieldCycle { get; set; }
public int ActivateLimit { get; set; }
public int ActivateCount { get; set; }
public int activate_count { get; set; }
}