게등위 버전

This commit is contained in:
Ino 2025-09-10 18:40:17 +09:00
parent 99e2c99ef8
commit e01e0d3241
6 changed files with 54 additions and 33 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 5566bda0cda2df941b2e54b77b279ac7 guid: a9197e8664a9b3f4f9c6495fca9819db
labels: labels:
- gvh - gvh
- gvh_version-9.5.0 - gvh_version-9.5.0

View File

@ -51,15 +51,27 @@ public class ADSManager : MonoBehaviour
adDictionary.Clear(); adDictionary.Clear();
// 라이브
//if (GameManager.DB.IsRemoveADS == false)
//{
// adDictionary.Add("Game_Interstitial", new InterstitialAd("ca-app-pub-6390804219581974/4957790852", "Game_Interstitial"));
// adDictionary.Add("Top_Banner", new BannerAd("ca-app-pub-6390804219581974/6518284533", "Top_Banner"));
//}
//adDictionary.Add("Result_Reward", new RewardAd("ca-app-pub-6390804219581974/3644709187", "Result_Reward"));
//adDictionary.Add("Heart_Reward", new RewardAd("ca-app-pub-6390804219581974/3947961516", "Heart_Reward"));
//adDictionary.Add("Gold_Reward", new RewardAd("ca-app-pub-6390804219581974/2331627517", "Gold_Reward"));
// 테스트
if (GameManager.DB.IsRemoveADS == false) if (GameManager.DB.IsRemoveADS == false)
{ {
adDictionary.Add("Game_Interstitial", new InterstitialAd("ca-app-pub-6390804219581974/4957790852", "Game_Interstitial")); adDictionary.Add("Game_Interstitial", new InterstitialAd("ca-app-pub-3940256099942544/1033173712", "Game_Interstitial"));
adDictionary.Add("Top_Banner", new BannerAd("ca-app-pub-6390804219581974/6518284533", "Top_Banner")); adDictionary.Add("Top_Banner", new BannerAd("ca-app-pub-3940256099942544/9214589741", "Top_Banner"));
} }
adDictionary.Add("Result_Reward", new RewardAd("ca-app-pub-6390804219581974/3644709187", "Result_Reward")); adDictionary.Add("Result_Reward", new RewardAd("ca-app-pub-3940256099942544/5224354917", "Result_Reward"));
adDictionary.Add("Heart_Reward", new RewardAd("ca-app-pub-6390804219581974/3947961516", "Heart_Reward")); adDictionary.Add("Heart_Reward", new RewardAd("ca-app-pub-3940256099942544/5224354917", "Heart_Reward"));
adDictionary.Add("Gold_Reward", new RewardAd("ca-app-pub-6390804219581974/2331627517", "Gold_Reward")); adDictionary.Add("Gold_Reward", new RewardAd("ca-app-pub-3940256099942544/5224354917", "Gold_Reward"));
foreach (var ad in adDictionary.Values) foreach (var ad in adDictionary.Values)

View File

@ -85,6 +85,11 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
/* 구매하는 함수 */ /* 구매하는 함수 */
public void Purchase(string productId) public void Purchase(string productId)
{ {
// 게등위 테스트용
AddProductItem(productId);
OnProcessPurchase?.Invoke(productId);
return;
#if UNITY_EDITOR #if UNITY_EDITOR
BuyItem(productId); BuyItem(productId);
#else #else
@ -194,6 +199,10 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
int Get_Price(string id) int Get_Price(string id)
{ {
// 게등위 테스트용
var data = StorePanel.list_item.Find(f=>f.productID == id);
return data.price;
#if UNITY_EDITOR #if UNITY_EDITOR
return (int)storeController.products.WithID(id).metadata.localizedPrice; return (int)storeController.products.WithID(id).metadata.localizedPrice;
#else #else
@ -232,8 +241,8 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
GameManager.DB.AddKey(500, this.name); GameManager.DB.AddKey(500, this.name);
GameManager.DB.AddTotalCashPerMonth(Get_Price(id)); GameManager.DB.AddTotalCashPerMonth(Get_Price(id));
break; break;
case "com.fgb.cash2000": case "com.fgb.cash1800":
GameManager.DB.AddKey(2000, this.name); GameManager.DB.AddKey(1800, this.name);
GameManager.DB.AddTotalCashPerMonth(Get_Price(id)); GameManager.DB.AddTotalCashPerMonth(Get_Price(id));
break; break;
case "com.fgb.cash7500": case "com.fgb.cash7500":

View File

@ -587,32 +587,32 @@ public class ProductSlot : CardBase
break; break;
case CodeJay.Enum.EProductType.IAP: case CodeJay.Enum.EProductType.IAP:
if (GameManager.Network.IsOnline == true) //if (GameManager.Network.IsOnline == true)
{ //{
// 구글 로그인에 관련된 처리는 필요없을듯 하다 // // 구글 로그인에 관련된 처리는 필요없을듯 하다
// 결제 실패에 관한 처리가 있어어야 하는가? // // 결제 실패에 관한 처리가 있어어야 하는가?
// StorePanel에서 결제 실패에 관한 처리를 하면 되는가? // // StorePanel에서 결제 실패에 관한 처리를 하면 되는가?
// 결제 실패시 이 팝업 로드 EPopupType.FailIAPPopup // // 결제 실패시 이 팝업 로드 EPopupType.FailIAPPopup
// 70만원 이상이면 결제 금지(한달 기간) // // 70만원 이상이면 결제 금지(한달 기간)
if (GameManager.DB.BuyShopAccumulatedMoney <= 600000) // if (GameManager.DB.BuyShopAccumulatedMoney <= 600000)
{ // {
return true; // return true;
} // }
else // else
{ // {
GameManager.UI.ShowNStackPopup(EPopupType.MonthlyPurchaselimitPopup); // GameManager.UI.ShowNStackPopup(EPopupType.MonthlyPurchaselimitPopup);
return false; // return false;
} // }
} //}
else //else
{ //{
// 팝업 출력 // // 팝업 출력
GameManager.UI.ShowNStackPopup(EPopupType.NotOnline_ClosePopup); // GameManager.UI.ShowNStackPopup(EPopupType.NotOnline_ClosePopup);
return false; // return false;
} //}
break; return true;
case CodeJay.Enum.EProductType.Gold: case CodeJay.Enum.EProductType.Gold:
// 위에서 처리하기 때문에 비여있는 상태 // 위에서 처리하기 때문에 비여있는 상태

View File

@ -36,7 +36,7 @@ public class StorePanel : MonoBehaviour
[SerializeField] private TextMeshProUGUI t_month; [SerializeField] private TextMeshProUGUI t_month;
private int BuyOneKey = 6; private int BuyOneKey = 6;
List<ProductData> list_item = new List<ProductData>(); public static List<ProductData> list_item = new List<ProductData>();
private void Awake() private void Awake()
{ {