From 4a3eb52c92c13d5533c6ef5e886c9c7ae92ba437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Sun, 3 Mar 2024 20:13:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=9D=EC=82=B0=EA=B1=B4=EB=AC=BC=20?= =?UTF-8?q?=ED=95=98=EB=93=9C=EC=BD=94=EB=94=A9=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/1_Script/Info/BuildingCtrl.cs | 6 +++--- Client/Assets/1_Script/System/Statics.cs | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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; }