Esempio n. 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());
                }
            }
        }
    }