Exemple #1
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
	}
Exemple #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
    }