usingGley.EasyIAP;publicclassTest:MonoBehaviour{voidStart() {Gley.EasyIAP.API.Initialize(InitializationComplete); }privatevoidInitializationComplete(IAPOperationStatus status,string message,List<StoreProduct> shopProducts) {if (status ==IAPOperationStatus.Success) { //IAP was successfully initialized //loop through all productsfor (int i =0; i <shopProducts.Count; i++) {if (shopProducts[i].productName=="YourProductName") { //if the 'active' variable is true, means that the user had bought that product //so enable accessif (shopProducts[i].active) { yourBoolVariable =true; } } } }else {Debug.Log("Error occurred: "+message); } }}