Exemplo n.º 1
0
    public RevMobAndroid(string appId, string gameObjectName)
    {
        this.gameObjectName = gameObjectName;
        AndroidJavaClass unityRevMobClass = new AndroidJavaClass("com.revmob.unity.UnityRevMob");

        this.session = unityRevMobClass.CallStatic <AndroidJavaObject>("start",
                                                                       RevMobAndroid.CurrentActivity(),
                                                                       appId,
                                                                       "unity-android",
                                                                       REVMOB_VERSION);
    }
Exemplo n.º 2
0
	public static RevMob Start(Dictionary<string, string> appIds, string gameObjectName) {
		Debug.Log("Creating RevMob Session");
#if UNITY_EDITOR
		Debug.Log("It Can't run in Unity Editor. Only in iOS or Android devices.");
		return null;
#elif UNITY_ANDROID
		RevMob session = new RevMobAndroid(appIds["Android"], gameObjectName);
		return session;
#elif UNITY_IPHONE
		RevMob session = new RevMobIos(appIds["IOS"], gameObjectName);
		return session;
#else
		return null;
#endif
	}
Exemplo n.º 3
0
    public static RevMob Start(Dictionary <string, string> appIds, string gameObjectName)
    {
        Debug.Log("Creating RevMob Session");
#if UNITY_EDITOR
        Debug.Log("It Can't run in Unity Editor. Only in iOS or Android devices.");
        return(null);
#elif UNITY_ANDROID
        RevMob session = new RevMobAndroid(appIds["Android"], gameObjectName);
        return(session);
#elif UNITY_IPHONE
        RevMob session = new RevMobIos(appIds["IOS"], gameObjectName);
        return(session);
#else
        return(null);
#endif
    }