Example #1
0
    public override void InitSDK(LT_INITED_NOTIFICATION_DELEGATE fnInit)
    {
        if (!_IsInited)
        {
            Reset();
            //EntryPoint.Instance.gameObject.AddComponent<Test.TestKakao>();
            //³õʼ»¯´òµãSDK
            var singularSDK = new GameObject("SingularSDK");
            singularSDK.AddComponent <SingularSDK>();

            KakaoUtil.Start((isAuthorized, resultCode) =>
            {
                if (resultCode == KGResultCode.Success)
                {
                    _IsInited  = true;
                    _IsLogined = isAuthorized;
                    DeviceLogger.Instance.WriteLog(HobaText.Format("Start succeeded, isAthorized: {0}, ", isAuthorized.ToString()));

                    if (fnInit != null)
                    {
                        fnInit(INITED_STATE.LT_INITED_SUCCEED, resultCode);
                    }
                }
                else
                {
                    DeviceLogger.Instance.WriteLog(HobaText.Format("Start failed, result code: {0}, ", resultCode.ToString()));
                    if (fnInit != null)
                    {
                        fnInit(INITED_STATE.LT_INITED_FAIL, resultCode);
                    }
                }
            });
        }
    }
Example #2
0
 public override void InitSDK(LT_INITED_NOTIFICATION_DELEGATE fnInit)
 {
     _IsInited = true;
     if (fnInit != null)
     {
         fnInit(INITED_STATE.LT_INITED_SUCCEED, -1);
     }
 }
Example #3
0
 public override void InitSDK(LT_INITED_NOTIFICATION_DELEGATE fnInit)
 {
     Reset();
     _IsInited = true;
     //EntryPoint.Instance.gameObject.AddComponent<Test.TestLongtu>();
     if (fnInit != null)
     {
         fnInit(INITED_STATE.LT_INITED_SUCCEED, 99);
     }
 }
Example #4
0
 public abstract void InitSDK(LT_INITED_NOTIFICATION_DELEGATE fnInit);