void Start()
    {
        // Register callbacks for Grow Insights before initialization
        HighwayEvents.OnInsightsRefreshFinished += OnInsightsRefreshFinished;

        // Register callbacks for SOOMLA LevelUp before initialization
        LevelUpEvents.OnLevelEnded += OnLevelEnded;

        // Register callbacks for Chartboost events
        SetChartboostEvents();
        Chartboost.cacheInterstitial(CBLocation.LevelComplete);
        Chartboost.cacheRewardedVideo(CBLocation.LevelComplete);


        // Make sure to make this call in your earliest loading scene,
        // and before initializing any other SOOMLA/GROW components
        // i.e. before SoomlaStore.Initialize(...)
        GrowHighway.Initialize();
        GrowInsights.Initialize();

        // Initialize SOOMLA Store & LevelUp
        // Assumes you've implemented your store assets
        // and an initial world with levels and missions
        SoomlaStore.Initialize(new YourStoreAssetsImplementation());
        SoomlaLevelUp.Initialize(WORLD);
    }
        public void onGrowInsightsInitialized(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGrowInsightsInitialized");

            GrowInsights.I_SyncWithNative();

            HighwayEvents.OnGrowInsightsInitialized();
        }
        public void onInsightsRefreshFinished(string message)
        {
            SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onInsightsRefreshFinished");

            GrowInsights.I_SyncWithNative();

            HighwayEvents.OnInsightsRefreshFinished();
        }
Exemple #4
0
        void Start()
        {
            StoreEvents.OnSoomlaStoreInitialized += onSoomlaStoreInitialized;

            StoreEvents.OnUnexpectedStoreError += onUnexpectedStoreError;


            GrowHighway.Initialize();
            bool modelSync = true;
            bool stateSync = true;

            GrowSync.Initialize(modelSync, stateSync);
            GrowGifting.Initialize();
            SoomlaProfile.Initialize();
            GrowInsights.Initialize();
            SoomlaStore.Initialize(new IAPAssets());
            StartCoroutine("loadMainScene");
            Invoke("loadGameNotAsync", 4);
        }
Exemple #5
0
    void Start()
    {
        // Register callback for Grow Insights before initialization
        HighwayEvents.OnInsightsRefreshFinished += OnInsightsRefreshFinished;

        // Make sure to make this call in your earliest loading scene,
        // and before initializing any other SOOMLA/GROW components
        // i.e. before SoomlaStore.Initialize(...)
        GrowHighway.Initialize();


        // Initialize Grow Insights and SOOMLA Store
        GrowInsights.Initialize();
        SoomlaStore.Initialize(new YourStoreAssetsImplementation());

        // Start Gift Servicae AFTER callbacks have been registered
        giftgaming.setGiftClosedCallback(giftClosed);
        giftgaming.startGiftService();
    }