18 lines
		
	
	
		
			558 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			558 B
		
	
	
	
		
			C#
		
	
	
	
| #if USE_IAP
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| using UnityEngine.Purchasing;
 | |
| 
 | |
| public static class IAPProducts//商品ID统一小写
 | |
| {
 | |
|     public const string NoAds = "com.hotpotgames.mergetactics.global.removeads";//去广告商品ID
 | |
|     //public const string Vip = "mergetactics_vip";//Vip
 | |
| 
 | |
|     public static readonly Dictionary<string, ProductType> ProductDic = new Dictionary<string, ProductType>()
 | |
|     {
 | |
|         { NoAds, ProductType.NonConsumable},
 | |
|         //{ Vip, ProductType.Subscription}
 | |
|     };
 | |
| }
 | |
| #endif |