Start() public static méthode

public static Start ( string>.Dictionary appIds ) : RevMob,
appIds string>.Dictionary
Résultat RevMob,
 void Start()
 {
     revmob = RevMob.Start(appIds, "GameObject");
     if (banner == null)
     {
         banner = revmob.CreateBanner();
     }
     banner.Show();
 }
    // Use this for initialization
    void Awake()
    {
        //Set Static flags
        ChartBoostActiveStaticFlag = ChartBoostActiveFlag;
        RevMobActiveStaticFlag     = RevMobActiveFlag;
        AdMobActiveStaticFlag      = AdMobActiveFlag;
        PlayHavenActiveStaticFlag  = PlayHavenActiveFlag;
        IAdsActiveStaticFlag       = IAdsActiveFlag;
        TapJoyActiveStaticFlag     = TapJoyActiveFlag;
        FlurryActiveStaticFlag     = FlurryActiveFlag;

        //Initialize ChartBoost
        if (ChartBoostActiveFlag)
        {
            ChartBoostAndroid.init(ChartBoostID, ChartBoostSIG, false);
            ChartBoostAndroid.onStart();
            ChartBoostAndroid.cacheInterstitial(null);
            ChartBoostAndroid.cacheMoreApps();
        }

        //Initialize RevMob
        if (RevMobActiveFlag)
        {
            REVMOB_APP_IDS.Add("Android", RevMobID);
            revMobSession = RevMob.Start(REVMOB_APP_IDS);
        }

        //Initialize Admob
        if (AdMobActiveFlag)
        {
            AdMobAndroid.init(AdMobID);
        }

        //Initialize Playhaven
        if (PlayHavenActiveFlag)
        {
            gameObject.SendMessage("OpenNotification");
        }

        //Initialize iAds
        if (IAdsActiveFlag)
        {
        }

        //Initialize TapJoy
        if (TapJoyActiveFlag)
        {
            TapjoyPluginAndroid.RequestTapjoyConnect(TapJoyID, TapJoySecretKey);
        }

        //Initialize Flurry
        if (FlurryActiveFlag)
        {
            flurrySession = new FlurryAgent();
            flurrySession.onStartSession(FlurryID);
        }
    }
Exemple #3
0
 void Awake()
 {
     Time.timeScale = 1;
     try
     {
         revMob = RevMob.Start(REVMOB_APP_IDS, "GameObject");
         ban    = revMob.CreateBanner();         //(0,0,350,50,null,null);
         //revMob.CreateBanner (0,0,350,50,null,null);
         tried = true;
     }
     catch
     {
     }
     //revMob.SetTimeoutInSeconds (5);
     Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes");
     Debug.Log("HI " + tried.ToString());
 }
    void OnGUI()
    {
        if (GUILayout.Button("Start Session"))
        {
                        #if !UNITY_EDITOR
            revmob = RevMob.Start(REVMOB_APP_IDS, gameObject.name);
                        #endif
        }
        if (GUILayout.Button("Create Intertitial"))
        {
                        #if !UNITY_EDITOR
            fullscreen = revmob.CreateFullscreen();
                        #endif
        }
        if (GUILayout.Button("Display Interstitial"))
        {
                        #if !UNITY_EDITOR
            if (fullscreen == null)
            {
                fullscreen = revmob.CreateFullscreen();
            }

            fullscreen.Show();
                        #endif
        }
        if (GUILayout.Button("Create Banner"))
        {
                        #if !UNITY_EDITOR
            loadedBanner = revmob.CreateBanner();
                        #endif
        }
        if (GUILayout.Button("Show Banner"))
        {
                        #if !UNITY_EDITOR
            loadedBanner.Show();
                        #endif
        }
        if (GUILayout.Button("Hide Banner"))
        {
                        #if !UNITY_EDITOR
            loadedBanner.Hide();
                        #endif
        }
    }
    private bool Setup()
    {
        if (!firstTime)
        {
            return(true);
        }

        firstTime = false;

        try
        {
            if (!Info.IsEditor())
            {
                instance = RevMob.Start(dict, adName);
                link     = instance.CreateAdLink();
            }
            return(true);
        }
        catch
        {
            return(Error(API, ERROR_STARTUP_OBJECT));
        }
    }
Exemple #6
0
 public void Awake()
 {
     Debug.Log("RevMob Start");
     revmob = RevMob.Start(appIds);
     DontDestroyOnLoad(this);
 }
Exemple #7
0
 void Awake()
 {
     revmob = RevMob.Start(REVMOB_APP_IDS, "AdsRevMob");
 }
Exemple #8
0
 void Awake()
 {
     revmob = RevMob.Start(REVMOB_APP_IDS, "Your_GameObject_name");
 }
    // Use this for initialization
    void Awake()
    {
        //Set Static flags
        ChartBoostActiveStaticFlag = ChartBoostActiveFlag;
        RevMobActiveStaticFlag     = RevMobActiveFlag;
        AdMobActiveStaticFlag      = AdMobActiveFlag;
        PlayHavenActiveStaticFlag  = PlayHavenActiveFlag;
        IAdsActiveStaticFlag       = IAdsActiveFlag;
        TapJoyActiveStaticFlag     = TapJoyActiveFlag;
        VungleActiveStaticFlag     = VungleActiveFlag;
        FlurryActiveStaticFlag     = FlurryActiveFlag;
        AppLovinStaticFlag         = AppLovinFlag;

        //Initialize ChartBoost
        if (ChartBoostActiveFlag)
        {
            ChartBoostBinding.init(ChartBoostID, ChartBoostSIG, false);
            ChartBoostBinding.cacheInterstitial(null);
            ChartBoostBinding.cacheMoreApps();
        }

        //Initialize RevMob
        if (RevMobActiveFlag)
        {
            REVMOB_APP_IDS.Add("IOS", RevMobID);
            revMobSession = RevMob.Start(REVMOB_APP_IDS);
        }

        //Initialize Admob
        if (AdMobActiveFlag)
        {
            AdMobBinding.init(AdMobID);
        }

        //Initialize Playhaven
        if (PlayHavenActiveFlag)
        {
            gameObject.SendMessage("OpenNotification");
        }

        //Initialize iAds
        if (IAdsActiveFlag)
        {
        }

        //Initialize TapJoy
        if (TapJoyActiveFlag)
        {
            TapjoyPluginIOS.RequestTapjoyConnect(TapJoyID, TapJoySecretKey);
            Debug.Log("Tapjoy integrated");
        }

        //Initialize Vungle
        if (VungleActiveFlag)
        {
            VungleBinding.startWithAppId(VungleID);
        }

        //Initialize Flurry
        if (FlurryActiveFlag)
        {
            FlurryBinding.startSession(FlurryID);
            //FlurryBinding.logEvent("Testing session started", false);
        }

        if (AppLovinFlag)
        {
            AppLovin.SetSdkKey(AppLovinID);
            AppLovin.InitializeSdk();
        }
    }
Exemple #10
0
 void Awake()
 {
     revmob = RevMob.Start(REVMOB_APP_IDS, this.gameObject.name);
 }
Exemple #11
0
 void Awake()
 {
     //Debug.Log("Creating RevMob Session");
     revmob = RevMob.Start(appIds);
 }