示例#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 );
	}
示例#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);
    }
示例#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
	}
示例#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
    }