예제 #1
0
    public void SdkLogin()
    {
        string strSession = SdkU3d.getPropStr(ConstProp.SESSION);

        Debug.Log("strSession=  " + strSession);

        m_elapsedTime = Time.realtimeSinceStartup;

        if (CheckUniSdkLogin == false || strSession == null || "".Equals(strSession))
        {
            SdkU3d.ntLogin();
        }
        else
        {
            if (StateManager.instance.m_curStateType.Equals(STATE_TYPE.STATE_TITLE))
            {
                if (CheckHasUserCenter)
                {
                    ((State_Title)StateManager.instance.m_curState).UpdateLoginUI(true);
                }
                else
                {
                    NetworkManager.instance.SendSdkLogin(MakeSSdkLoginParam());
                }
            }
        }
    }
예제 #2
0
    /// <summary>
    /// <para>name : SetSdkLoginAuthInfo</para>
    /// <para>describe : 서버에서 내려받은 SDK Login 패킷을 저장.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    public void SetSdkLoginAuthData(string userNo, RES_SDK_LOGIN packet)
    {
        m_sdkLoginData = new SdkLoginData(userNo, SdkU3d.getPropStr(ConstProp.UID), packet);

        OldSdkAccountID = m_sdkLoginData.sdkLoginAuthInfo != null ? m_sdkLoginData.sdkLoginAuthInfo.aid : 0;
        SdkGameLoginSucess(m_sdkLoginData.sdkLoginAuthInfo);
    }