矿场修改
This commit is contained in:
parent
34af355f9d
commit
c3ec26a706
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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; }
|
||||
}
|
Loading…
Reference in New Issue
Block a user