Example #1
0
    void OnGUI()
    {
        if (isAndroidDevice() == false)
        {
            return;
        }

        if (banner)
        {
            StartAppWrapper.addBanner(
                StartAppWrapper.BannerType.AUTOMATIC,
                StartAppWrapper.BannerPosition.BOTTOM);
            banner = false;
        }

        if (interstitial)
        {
            listener = new Listener();

            /*if(interestial_VIDEO)
             *  StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO, listener);
             * else */if (interestial_OFFERS)
            {
                StartAppWrapper.loadAd(StartAppWrapper.AdMode.OFFERWALL, listener);
            }
            else if (interestial_FULLPAGE)
            {
                StartAppWrapper.loadAd(StartAppWrapper.AdMode.FULLPAGE, listener);
            }
            interstitial = false;
        }
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        fullcollider.SetActive(false);
        menudemo.SetActive(false);
        checklogin      = false;
        ProgressPuzzle  = PuzzleP.GetComponent <PuzzleProgress> ();
        mystats.puzzles = ProgressPuzzle;
        sp = new ServiceAPI("cc5e4b986d3d998ac24752f4796db9da71b4ca958a405d4da416a5e254762284", "4ff997d23e3d2ae89e207a1899f0be8b3df96da3ec0118f64d7fe1859d0a6078");
        App42API.Initialize("cc5e4b986d3d998ac24752f4796db9da71b4ca958a405d4da416a5e254762284", "4ff997d23e3d2ae89e207a1899f0be8b3df96da3ec0118f64d7fe1859d0a6078");
        #if UNITY_ANDROID
        StartAppWrapper.init();
        StartAppWrapper.addBanner(
            StartAppWrapper.BannerType.AUTOMATIC,
            StartAppWrapper.BannerPosition.BOTTOM);
        #endif
        #if UNITY_IPHONE
        StartAppWrapperiOS.unityOrientation(StartAppWrapperiOS.STAUnityOrientation.STALandscape);
        StartAppWrapperiOS.addBanner(StartAppWrapperiOS.BannerPosition.BOTTOM);
        StartAppWrapperiOS.disableReturnAd();
        #endif

        /*
         * advertisement = banner.GetComponent<AdMobPlugin> ();
         *      advertisement.verticalPosition = AdVerticalPosition.TOP;
         *      advertisement.Reconfigure ();
         */
    }
Example #3
0
 //show banner
 public void ShowBanner()
 {
             #if UNITY_ANDROID
     StartAppWrapper.addBanner(
         StartAppWrapper.BannerType.AUTOMATIC,
         StartAppWrapper.BannerPosition.BOTTOM);
             #endif
 }
Example #4
0
 void Start()
 {
             #if UNITY_ANDROID
     StartAppWrapper.addBanner(
         StartAppWrapper.BannerType.AUTOMATIC,
         StartAppWrapper.BannerPosition.TOP);
             #endif
 }
Example #5
0
    public void Start()
    {
        Time.timeScale = 1.0f;
#if UNITY_ANDROID
        StartAppWrapper.addBanner(
            StartAppWrapper.BannerType.AUTOMATIC,
            StartAppWrapper.BannerPosition.BOTTOM);
#endif
    }
Example #6
0
    private void reloadStartAppBanners()
    {
        if (StartAppWrapper.checkIfBannerExists(StartAppWrapper.BannerPosition.BOTTOM))
        {
            StartAppWrapper.removeBanner(StartAppWrapper.BannerPosition.BOTTOM);
            StartAppWrapper.addBanner(StartAppWrapper.BannerType.AUTOMATIC, StartAppWrapper.BannerPosition.BOTTOM);
        }

        if (StartAppWrapper.checkIfBannerExists(StartAppWrapper.BannerPosition.TOP))
        {
            StartAppWrapper.removeBanner(StartAppWrapper.BannerPosition.TOP);
            StartAppWrapper.addBanner(StartAppWrapper.BannerType.AUTOMATIC, StartAppWrapper.BannerPosition.TOP);
        }
    }
Example #7
0
    // Use this for initialization
    void Start()
    {
        Vector3 position1 = position.transform.position;

                #if UNITY_ANDROID
        StartAppWrapper.addBanner(
            StartAppWrapper.BannerType.AUTOMATIC,
            StartAppWrapper.BannerPosition.TOP);
        if (Application.internetReachability != NetworkReachability.NotReachable)
        {
            for (int i = 0; i < menus.Count; i++)
            {
                Debug.Log(i);
                Vector3 pos = menus[i].transform.position;
                pos.y += position1.y;
            }
        }
                #endif
    }
 public void PauseResume()
 {
     Debug.Log("PauseResume");
     if (Time.timeScale == 0)
     {
         Time.timeScale = 1;
                     #if UNITY_ANDROID
         StartAppWrapper.removeBanner(StartAppWrapper.BannerPosition.TOP);
                     #endif
     }
     else
     {
                     #if UNITY_ANDROID
         StartAppWrapper.addBanner(
             StartAppWrapper.BannerType.AUTOMATIC,
             StartAppWrapper.BannerPosition.TOP);
                     #endif
         Time.timeScale = 0;
     }
 }
Example #9
0
 private void launchBanner()
 {
     StartAppWrapper.addBanner(
         StartAppWrapper.BannerType.AUTOMATIC,
         StartAppWrapper.BannerPosition.BOTTOM);
 }
 void Start()
 {
     StartAppWrapper.addBanner(StartAppWrapper.BannerType.STANDARD, StartAppWrapper.BannerPosition.BOTTOM);
     StartAppWrapper.addBanner(StartAppWrapper.BannerType.THREED, StartAppWrapper.BannerPosition.TOP);
 }