矿场修改

This commit is contained in:
liuliang 2024-12-20 09:32:19 +08:00
parent 34af355f9d
commit c3ec26a706
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.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0"); 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(); go.OnClick();
} }

View File

@ -32,9 +32,9 @@ public class Scene_baoshikuang : MonoBehaviour
roomController.RoomId = info.Id; roomController.RoomId = info.Id;
// 如果 ActivateCount 大于 0则调用 OnClick 方法 // 如果 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(); roomController.OnClick();
} }

View File

@ -29,11 +29,11 @@ public class Scene_jinbikuang : MonoBehaviour
go.RoomId = info.Id; go.RoomId = info.Id;
go.ActivateValue = info.Price; 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.ActivateValue = info.Price;
go.goldNumerTextPro.text = info.Price.ToString("f0"); go.goldNumerTextPro.text = info.Price.ToString("f0");
go.shipNumberTextPro.text =info.ActivateCount.ToString() + "/" + info.ActivateLimit; go.shipNumberTextPro.text =info.activate_count.ToString() + "/" + info.ActivateLimit;
Debug.LogError("!!!!!!!!!!info.ActivateCount" + info.activate_count);
if (info.ActivateCount > 0) 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(); go.OnClick();
} }

View File

@ -135,7 +135,9 @@ public class roomcontroller : MonoBehaviour
return; return;
} }
Debug.Log("OnClick");
// Debug.Log("OnClick");
if (fishMan == null) if (fishMan == null)

View File

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