コード例 #1
0
    /*
     * Call this function in your first scene or when you want user to login
     * */
    public void Init()
    {
        AppotaSDKReceiver.InitializeGameObjects();

        init();
        Debug.Log("Called init iOS ");
        Debug.Log("AppotaSDK-Unity Version: " + APPOTA_VERSION);
    }
コード例 #2
0
    public void Init()
    {
        AppotaSDKReceiver.InitializeGameObjects();
        AndroidJNI.AttachCurrentThread();
        cls_AppotaUnityHandler = new AndroidJavaClass("com.appota.gamesdk.v4.unity.UnityHandler");

        Debug.Log("Start init Android");

        cls_AppotaUnityHandler.CallStatic("Init");

        Debug.Log("Called init Android ");
        Debug.Log("AppotaSDK-Unity Version: " + APPOTA_VERSION);

        // Configure Adwords and AppFlyer
        if (AppotaSetting.UsingAdWords)
        {
            AppotaSDKHandler.Instance.ConfigureAdwords();
        }

        if (AppotaSetting.UsingAppFlyer)
        {
            AppotaSDKHandler.Instance.ConfigureAppFlyer();
        }
    }