diff --git a/Assets/KJM/Admob/AdManager.cs b/Assets/KJM/Admob/AdManager.cs index d059ac5..1950296 100644 --- a/Assets/KJM/Admob/AdManager.cs +++ b/Assets/KJM/Admob/AdManager.cs @@ -63,7 +63,6 @@ public class AdManager : MonoBehaviour // 광고 닫힘 이벤트 처리 private void HandleAdClosed() { - Debug.Log("보상형 전면 광고 닫힘, 새로운 광고 로드."); LoadRewardedInterstitialAd(); // 광고가 닫힌 후 다시 로드 } @@ -76,7 +75,7 @@ public class AdManager : MonoBehaviour GameManager.Instance.panelManager.UpdateCoinsPanelUI(coinsAdded, shopPanel); }, () => { - Debug.Log("광고 시청 후 코인 추가 실패!"); + Debug.Log("광고 시청 후 코인 추가 실패"); }); } } \ No newline at end of file diff --git a/Assets/KJM/ShopTest/MainPanelButtonController.cs b/Assets/KJM/ShopTest/MainPanelButtonController.cs index 0f3e996..fb512e9 100644 --- a/Assets/KJM/ShopTest/MainPanelButtonController.cs +++ b/Assets/KJM/ShopTest/MainPanelButtonController.cs @@ -16,8 +16,8 @@ public class MainPanelButtonController : MonoBehaviour { ShopItem shopItem = new ShopItem { - Name = "광고) 코인500개 ", - Price = 0 + name = "광고) 코인500개 ", + price = 0 }; shopItems.Add(shopItem); } @@ -25,8 +25,8 @@ public class MainPanelButtonController : MonoBehaviour { ShopItem shopItem = new ShopItem { - Name = i*1000+"개 ", - Price = i * 1000 + name = i*1000+"개 ", + price = i * 1000 }; shopItems.Add(shopItem); } diff --git a/Assets/Script/Common/CoinsPanelController.cs b/Assets/Script/Common/CoinsPanelController.cs index 34b924c..38c3dcd 100644 --- a/Assets/Script/Common/CoinsPanelController.cs +++ b/Assets/Script/Common/CoinsPanelController.cs @@ -94,7 +94,7 @@ public class CoinsPanelController : MonoBehaviour /// 코인 추가 함수 /// /// 추가할 코인 수량 - /// + /// 상점 패널 캔버스 그룹 /// 애니메이션 종료 후 동작 EX) 코인 수량 변경 public void AddCoins(int coinsCount, CanvasGroup shopPanel,Action action) { diff --git a/Assets/Script/Common/ScrollItem/ShopItem.cs b/Assets/Script/Common/ScrollItem/ShopItem.cs index 0959f2a..e1554ff 100644 --- a/Assets/Script/Common/ScrollItem/ShopItem.cs +++ b/Assets/Script/Common/ScrollItem/ShopItem.cs @@ -4,6 +4,6 @@ using UnityEngine; public class ShopItem { - public string Name; - public int Price; + public string name; + public int price; } diff --git a/Assets/Script/Main/NetworkManager.cs b/Assets/Script/Main/NetworkManager.cs index 03e71e8..0d69e7b 100644 --- a/Assets/Script/Main/NetworkManager.cs +++ b/Assets/Script/Main/NetworkManager.cs @@ -429,7 +429,7 @@ public class NetworkManager : Singleton if (purchaseResult.result == "SUCCESS") { - Debug.Log($"결제 완료! {purchaseResult.purchased} 코인 충전됨, 현재 코인: {purchaseResult.currentCoins}"); + Debug.Log($"결제 완료 {purchaseResult.purchased} 코인 충전됨, 현재 코인: {purchaseResult.currentCoins}"); // 유저 데이터 갱신 UserManager.Instance.SetCoinsInfo(); diff --git a/Assets/Script/UI/PanelChildController/ShopItemController.cs b/Assets/Script/UI/PanelChildController/ShopItemController.cs index 97f9ad5..7b39614 100644 --- a/Assets/Script/UI/PanelChildController/ShopItemController.cs +++ b/Assets/Script/UI/PanelChildController/ShopItemController.cs @@ -15,8 +15,8 @@ public class ShopItemController : MonoBehaviour var itemImage = GetComponentsInChildren()[1]; var itemText = GetComponentsInChildren(); - itemText[0].text = this._shopItem.Name; - itemText[1].text = this._shopItem.Price+"원"; + itemText[0].text = this._shopItem.name; + itemText[1].text = this._shopItem.price+"원"; } @@ -24,7 +24,7 @@ public class ShopItemController : MonoBehaviour { var shopPanel = GetComponentInParent(); //코인 구매시 상점 패널의 캔버스 그룹 raycast를 비활성화하여 중복클릭 방지. - if (_shopItem.Price == 0) + if (_shopItem.price == 0) { //보상형 전면 광고 로드 _adManager = GetComponent(); @@ -34,14 +34,14 @@ public class ShopItemController : MonoBehaviour { NetworkManager.Instance.PurchaseCoins( - _shopItem.Price, // 충전할 코인 개수 - _shopItem.Name, // 결제 ID + _shopItem.price, // 충전할 코인 개수 + _shopItem.name, // 결제 ID "GooglePay", // 결제 방식 (GooglePay, PayPal 등) (coins) => { GameManager.Instance.panelManager.UpdateCoinsPanelUI(coins,shopPanel); }, () => { - Debug.LogError("결제 후 코인 충전 실패!"); + Debug.LogError("결제 후 코인 충전 실패"); } ); } diff --git a/Assets/Script/UI/PanelController/PanelManager.cs b/Assets/Script/UI/PanelController/PanelManager.cs index 8cb4b74..c44c585 100644 --- a/Assets/Script/UI/PanelController/PanelManager.cs +++ b/Assets/Script/UI/PanelController/PanelManager.cs @@ -183,8 +183,8 @@ public class PanelManager : MonoBehaviour { ShopItem shopItem = new ShopItem { - Name = "광고) 코인500개 ", - Price = 0 + name = "광고) 코인500개 ", + price = 0 }; shopItems.Add(shopItem); } @@ -192,8 +192,8 @@ public class PanelManager : MonoBehaviour { ShopItem shopItem = new ShopItem { - Name = i*1000+"개 ", - Price = i * 1000 + name = i*1000+"개 ", + price = i * 1000 }; shopItems.Add(shopItem); }