diff --git a/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs b/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs index 01a93c078..4fc73869d 100644 --- a/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs +++ b/meng_yao/Assets/script/scene_jinshakuang/jskPanel.cs @@ -31,8 +31,9 @@ public class jskPanel : mount int index = 1; for (int i = 0; i < 5; i++) { + // Debug.LogError(lands[index].GetComponent().ActivateValue.ToString()); boxTypes.Add(new BoxType { Name = index.ToString() + "Îı¾", prompt = "µÚ" + ArabicToChineseNumberConverter.ConvertToChineseNumbers(index.ToString()) + "²ã", Type = 4, is_required = true }); - boxTypes.Add(new BoxType { Name = "²¶Óã" + index.ToString(), prompt = "²¶Óã" + 1, Type = 3, goldNumerobj = lands[index].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); + boxTypes.Add(new BoxType { Name = "²¶Óã" + index.ToString(), prompt = "²¶Óã" + 1, Type = 3, goldNumerobj = lands[index-1].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); index++; } diff --git a/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs b/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs index c9e77571d..cfdaafe3d 100644 --- a/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs +++ b/meng_yao/Assets/script/scene_jishadao/jishadao_buy.cs @@ -29,8 +29,9 @@ public class jishadao_buy :mount int index = 1; for (int i = 0; i < 3; i++) { + //Debug.LogError(lands[index].GetComponent().ActivateValue.ToString()); boxTypes.Add(new BoxType { Name = index.ToString() + "Îı¾", prompt = "µÚ" + ArabicToChineseNumberConverter.ConvertToChineseNumbers(index.ToString()) + "²ã", Type = 4, is_required = true }); - boxTypes.Add(new BoxType { Name = "²¶Óã" + index.ToString(), prompt = "²¶Óã" + 1, Type = 3, goldNumerobj = lands[index].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); + boxTypes.Add(new BoxType { Name = "²¶Óã" + index.ToString(), prompt = "²¶Óã" + 1, Type = 3, goldNumerobj = lands[index - 1].GetComponent().ActivateValue.ToString(), icon = iconS[index - 1] }); index++; }