Exemplo n.º 1
0
	public static void init( string appId, int age, VungleGender gender )
	{
		if( Application.platform != RuntimePlatform.Android )
			return;

		_plugin.Call( "init", appId, age, (int)gender );
	}
Exemplo n.º 2
0
    public static void init(string appId, int age, VungleGender gender)
    {
        if (Application.platform != RuntimePlatform.Android)
        {
            return;
        }

        _plugin.Call("init", appId, age, (int)gender);
    }
Exemplo n.º 3
0
	public static void init( string androidAppId, string iosAppId, int age, VungleGender gender )
	{
#if UNITY_IPHONE
		var userData = new Dictionary<string,object>();
		
		if( age > 0 )
		{
			userData["gender"] = (int)gender + 1;
			userData["age"] = age;
		}
		
		VungleBinding.startWithAppIdAndUserData( iosAppId, userData );
#elif UNITY_ANDROID
		if( age > 0 )
			VungleAndroid.init( androidAppId, age, gender );
		else
			VungleAndroid.init( androidAppId );
#endif
	}
Exemplo n.º 4
0
    public static void init(string androidAppId, string iosAppId, int age, VungleGender gender)
    {
#if UNITY_IPHONE
        var userData = new Dictionary <string, object>();

        if (age > 0)
        {
            userData["gender"] = (int)gender + 1;
            userData["age"]    = age;
        }

        VungleBinding.startWithAppIdAndUserData(iosAppId, userData);
#elif UNITY_ANDROID
        if (age > 0)
        {
            VungleAndroid.init(androidAppId, age, gender);
        }
        else
        {
            VungleAndroid.init(androidAppId);
        }
#endif
    }