Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.Purchasing.Security;
using CompleteProject;
public class ShopController : MonoBehaviour {
public Canvas shopCanvas;
@AddyDaDaddy
AddyDaDaddy / Purchaser Script
Last active March 30, 2017 08:58
Implement Receipt Validation
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Purchasing;
using UnityEngine.Analytics;
namespace CompleteProject
{
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing.
public class Purchaser : MonoBehaviour, IStoreListener
@AddyDaDaddy
AddyDaDaddy / IAP, DataSave & LM
Created December 20, 2016 19:56
All Scripts that handle Data Save & In App Purchase to Remove Ads and Access New Game mode (See Comments)
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Purchasing;
using UnityEngine.Analytics;
namespace CompleteProject
{
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing.
public class Purchaser : MonoBehaviour, IStoreListener