示例#1
0
 // Use this for initialization
 void Start()
 {
             #if UNITY_ANDROID
     StartAppWrapper.init();
     StartAppWrapper.loadAd();
             #endif
 }
示例#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 ();
         */
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     //Load the ad (after calling the init() function)
             #if UNITY_ANDROID
     StartAppWrapper.init();
     StartAppWrapper.loadAd();
     ShowSplash();
             #endif
 }
示例#4
0
 void Start()
 {
     if (isAndroidDevice() == false)
     {
         return;
     }
     StartAppWrapper.init();
     launchBanner();
 }
示例#5
0
    // Use this for initialization
    void Start()
    {
        StartAppWrapper.init();
        StartAppWrapper.loadAd();

        /*StartAppWrapper.addBanner(
         *      StartAppWrapper.BannerType.AUTOMATIC,
         *      StartAppWrapper.BannerPosition.TOP);*/
        StartCoroutine(first());
    }
示例#6
0
    //================================

    //================================
    public void ShowQuitPanel()
    {
        Time.timeScale = 0;             // this code make time in game frezze and it seem like game in pause.
        _quitpanel.SetActive(true);
#if UNITY_ANDROID
        StartAppWrapper.init();
        StartAppWrapper.loadAd();
        ShowSplash();
#endif
    }
示例#7
0
 //
 public void ChangeToScene(int NumberOfScene)
 {
     TimeToFade();
     Time.timeScale = 1;                     // this code make time in game run normally and it seem like game is running.
     SceneManager.LoadScene(NumberOfScene, LoadSceneMode.Single);
             #if UNITY_ANDROID
     StartAppWrapper.init();
     StartAppWrapper.loadAd();
     ShowSplash();
             #endif
 }
示例#8
0
 void Start()
 {
     if (isAndroidDevice() == false)
     {
         return;
     }
     setRandom();
     if (/*interestial_VIDEO ||*/ interestial_OFFERS || interestial_FULLPAGE)
     {
         interstitial = true;
     }
     StartAppWrapper.init();
 }
示例#9
0
    // Use this for initialization
    void Awake()
    {
        GameObject HUDcanvas = GameObject.FindGameObjectWithTag("HUDCanvas");

        anim  = HUDcanvas.GetComponent <Animator> ();
        text  = GetComponent <Text> ();
        score = 0;


                        #if UNITY_ANDROID
        StartAppWrapper.init();
        StartAppWrapper.loadAd();
                        #endif
    }
示例#10
0
    void OnGUI()
    {
                #if UNITY_ANDROID
        StartAppWrapper.showSplash(new StartAppWrapper.SplashConfig()
                                   .setTheme(StartAppWrapper.SplashConfig.Theme.OCEAN)
                                   .setAppName("Hook and Woosh")
                                   //.setLogo("XonderSquare360")
                                   .setOrientation(StartAppWrapper.SplashConfig.Orientation.AUTO)
                                   );

        StartAppWrapper.showSplash();

        StartAppWrapper.init();
        //StartAppWrapper.loadAd();
        StartAppWrapper.loadAd(StartAppWrapper.AdMode.REWARDED_VIDEO);
                #endif
    }
示例#11
0
    // Use this for initialization
    void Start()
    {
//		PlayerPrefs.DeleteAll();

        Invoke("HideSplashScreen", 3f);
        Lives          = 3;
        s              = true;
        ExitControl    = false;
        ss             = true;
        OnlyForExit    = false;
        Time.timeScale = 1;
        ExitAnim       = ExitMenu.GetComponent <Animator>();
        DontDestroyOnLoad(gameObject);
                #if UNITY_ANDROID
        StartAppWrapper.init();
        StartAppWrapper.loadAd();
                #endif
    }
示例#12
0
 void Start()
 {
     //Se ejecuta al iniciar la aplicacion
     sp = new ServiceAPI("cc5e4b986d3d998ac24752f4796db9da71b4ca958a405d4da416a5e254762284", "4ff997d23e3d2ae89e207a1899f0be8b3df96da3ec0118f64d7fe1859d0a6078");
     App42API.Initialize("cc5e4b986d3d998ac24752f4796db9da71b4ca958a405d4da416a5e254762284", "4ff997d23e3d2ae89e207a1899f0be8b3df96da3ec0118f64d7fe1859d0a6078");
     mystats = stats.GetComponent<infoPlayer>();
     ProgressPuzzle = PuzzleP.GetComponent<PuzzleProgress>();
     mystats.puzzles = ProgressPuzzle;
     mystats.alreadyBegun = false;
     searching.text = "Searching for matches...";
     userID.text = mystats.idplayer;
     /*
     Query q2 = QueryBuilder.Build("IDjugador1", mystats.idplayer, Operator.EQUALS);
     Query q13 = QueryBuilder.Build("IDjugador2", mystats.idplayer, Operator.EQUALS);
     Query q3 = QueryBuilder.Build("1", "16", Operator.NOT_EQUALS);
     Query q4 = QueryBuilder.Build("2", "16", Operator.NOT_EQUALS);
     Query q5 = QueryBuilder.CompoundOperator(q3, Operator.OR, q4);
     Query q14 = QueryBuilder.CompoundOperator(q2, Operator.OR, q13);
     Query q6 = QueryBuilder.CompoundOperator(q5, Operator.AND, q14);
     storageService = sp.BuildStorageService();
     storageService.FindDocumentsByQuery(dbName, collectionName, q6, callBack);
     Query q1 = QueryBuilder.Build("Full", "false", Operator.EQUALS);
     Query q7 = QueryBuilder.Build("IDplayer1", mystats.idplayer, Operator.NOT_EQUALS);
     Query q10 = QueryBuilder.CompoundOperator(q1, Operator.AND, q7);
     storageService = sp.BuildStorageService();
     storageService.FindDocumentsByQuery(dbName, collectionName, q10, callBack);
     */
     StartCoroutine(waitResponseTuyas ());
     StartCoroutine(waitResponse());
     #if UNITY_ANDROID
     StartAppWrapper.init();
     StartAppWrapper.removeBanner(StartAppWrapper.BannerPosition.BOTTOM);
     #endif
     #if UNITY_IPHONE
     StartAppWrapperiOS.unityOrientation(StartAppWrapperiOS.STAUnityOrientation.STALandscape);
     StartAppWrapperiOS.addBanner(StartAppWrapperiOS.BannerPosition.BOTTOM);
     #endif
     /*
     advertisement = banner.GetComponent<AdMobPlugin>();
     advertisement.Reconfigure();
      */
 }