Ejemplo n.º 1
0
    public bool IsDeviceRegisterNeeded()
    {
        GamedoniaPushNotifications   pushScript  = this.GetComponent <GamedoniaPushNotifications>();
        GamedoniaStoreInAppPurchases inappScript = this.GetComponent <GamedoniaStoreInAppPurchases>();

        return(pushScript != null || inappScript != null);
    }
Ejemplo n.º 2
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.º 3
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);
    }