diff --git a/Client/Assets/1_Script/Info/BuildingCtrl.cs b/Client/Assets/1_Script/Info/BuildingCtrl.cs index 16e12d73..c4c4e1ae 100644 --- a/Client/Assets/1_Script/Info/BuildingCtrl.cs +++ b/Client/Assets/1_Script/Info/BuildingCtrl.cs @@ -51,7 +51,7 @@ public class BuildingCtrl : MonoBehaviour else { if (buildingLevel != 5) - PlayCtrl.Instance.LevelupBuyAndSellText(150 * buildingLevel, -1); + PlayCtrl.Instance.LevelupBuyAndSellText(Statics.resourceBuy * buildingLevel, -1); else PlayCtrl.Instance.LevelupBuyAndSellText(-1, -1); } @@ -91,12 +91,12 @@ public class BuildingCtrl : MonoBehaviour PlayCtrl.Instance.player.buildings[wave].level[position - 1] = buildingLevel + 1; } else { - if(150 * buildingLevel > PlayCtrl.Instance.money) + if(Statics.resourceBuy * buildingLevel > PlayCtrl.Instance.money) { Debug.Log("±¸¸Åºñ¿ëÀÌ ºÎÁ·ÇÕ´Ï´Ù"); return; } - PlayCtrl.Instance.TextUpdate(-150 * buildingLevel); + PlayCtrl.Instance.TextUpdate(-Statics.resourceBuy * buildingLevel); PlayCtrl.Instance.player.addMoney[wave] += 100; } buildingLevel++; diff --git a/Client/Assets/1_Script/System/Statics.cs b/Client/Assets/1_Script/System/Statics.cs index 2beb4892..a0480140 100644 --- a/Client/Assets/1_Script/System/Statics.cs +++ b/Client/Assets/1_Script/System/Statics.cs @@ -34,4 +34,9 @@ public class Statics //À¯Àú°¡ Ç÷¹ÀÌÇÑ ÃÁÅÍ Á¤º¸ public static int chapter; + + + + //±âº» ¼¼ÆÃ µ¥ÀÌÅÍ + public static readonly int resourceBuy = 150; }