Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        // In App purchases, request callback
        GDInAppService reqService = new GDInAppService();

        reqService.RegisterEvent += new InAppEventHandler(OnProductsRequested);
        GamedoniaStoreInAppPurchases.AddRequestService(reqService);
        // In App purchases, buyservice callback
        GDInAppService buyService = new GDInAppService();

        buyService.RegisterEvent += new InAppEventHandler(OnProductPurchased);
        GamedoniaStoreInAppPurchases.AddPurchaseService(buyService);
    }
Ejemplo n.º 2
0
    void Start()
    {
        GamedoniaUsers.Authenticate(OnLogin);
        printToConsole("Starting session with Gamedonia...");

        //Register the callback
        GDInAppService reqService = new GDInAppService();

        reqService.RegisterEvent += new InAppEventHandler(OnProductsRequested);
        GamedoniaStoreInAppPurchases.AddRequestService(reqService);

        GDInAppService buyService = new GDInAppService();

        buyService.RegisterEvent += new InAppEventHandler(OnProductPurchased);
        GamedoniaStoreInAppPurchases.AddPurchaseService(buyService);
    }
Ejemplo n.º 3
0
 public static void AddPurchaseService(GDInAppService service)
 {
     purchaseServices.Add(service);
 }
Ejemplo n.º 4
0
 public static void AddRequestService(GDInAppService service)
 {
     requestServices.Add(service);
 }
 public static void AddRequestService(GDInAppService service)
 {
     requestServices.Add(service);
 }
 public static void AddPurchaseService(GDInAppService service)
 {
     purchaseServices.Add(service);
 }