Esempio n. 1
0
    void Awake()
    {
        useLog = Debug.isDebugBuild;

#if UNITY_IOS
        useAdbrix         = false;
        useAdfit          = false;
        useAppang         = false;
        useGoogleTracking = false;
#endif


        if (instance == null)
        {
            GameObject.DontDestroyOnLoad(this.gameObject);
            instance = this;

            if (useGoogleTracking)
            {
                initGoogleTracking();
            }

            if (useAdbrix)
            {
#if UNITY_ANDROID
                IgaworksUnityPluginAOS.InitPlugin();
                IgaworksUnityPluginAOS.Common.startApplication();
#endif
            }
        }
        else
        {
            GameObject.Destroy(this.gameObject);
        }
    }
Esempio n. 2
0
 public void Init()
 {
             #if !UNITY_EDITOR
     //유니티 엔진이 초기화될 때, IGAW 플러그인을 초기화 합니다.
     IgaworksUnityPluginAOS.InitPlugin();
     //네이티브 SDK를 초기화 합니다.
     IgaworksUnityPluginAOS.Common.startApplication();
             #endif
 }
Esempio n. 3
0
    void initializeActivity()
    {
        _curActivityMsg = " INITAIALIZE ACTIVITY ";

        _nativeInitializeComplete = false;
        _currAct = E_NATIVE_ACTION.NONE;

#if UNITY_ANDROID
        if (Application.platform == RuntimePlatform.Android)
        {
            AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
            _currActivity = jc.GetStatic <AndroidJavaObject>("currentActivity");

            if (null != _currActivity)
            {
                this.onestoreIapManager = new AndroidJavaObject("com.skplanet.iap.unity.IapManager", _currActivity, appId);

                if (onestoreIapManager != null)
                {
                    if (!onestoreIapManager.Call <bool>("InitPlugin", false))
                    {
                        // strLabelPayment = "Init Fail";
                        //strLabelQuery = "Init Fail";
                    }
                }
            }

            _curActivityMsg = " ADDBRIX PLUGIN INITIALIZE ";

            IgaworksUnityPluginAOS.InitPlugin();
            IgaworksUnityPluginAOS.Common.startApplication();
            IgaworksUnityPluginAOS.Common.startSession();
            IgaworksUnityPluginAOS.LiveOps.setNotificationOption(IgaworksUnityPluginAOS.AndroidNotificationPriority.PRIORITY_MAX, IgaworksUnityPluginAOS.AndroidNotificationVisibility.VISIBILITY_PUBLIC);
            //IgaworksUnityPluginAOS.LiveOps.setStackingNotificationOption(true, false, "More events are waiting for you", "See detail", "All events", "For Summary Text");

            IgaworksUnityPluginAOS.Common.setUserId(SystemInfo.deviceUniqueIdentifier);
            IgaworksUnityPluginAOS.LiveOps.initialize();

            IgaworksUnityPluginAOS.LiveOps.requestPopupResource();                //°øÁö ¸®¼Ò½º ºÒ·¯¿À±â
            IgaworksUnityPluginAOS.OnReceiveDeeplinkData = OnRecieveDeepLinkData; //µö¸µÅ©(°áÀç)¿ë À̺¥Æ® ºv·Ï


            _curActivityMsg = " ADDBRIX PLUGIN INITIALIZE COMPLETE";

            //Debug.Log(" !!!!! " + _curActivityMsg );
        }
#endif

        //Debug.Log(" !!!!! NATIVEMANAGER INIT PLUGIN !!!!! ");
    }
Esempio n. 4
0
    // Use this for initialization

    void Awake()
    {
        Debug.Log("AWAKE - AWAKE - AWAKE");

        IgaworksUnityPluginAOS.InitPlugin();
    }