Пример #1
0
    /// <summary>
    /// <para>name : ResetSdkLoginAuthData</para>
    /// <para>describe : SDK 로그인 데이터 초기화.</para>
    /// <para>tag : [email protected]</para>
    /// </summary>
    public void ResetSdkLoginAuthData()
    {
        m_sdkLoginData  = null;
        OldSdkAccountID = 0;

        WorldManager.instance.m_player.m_userNo    = null;
        WorldManager.instance.m_player.m_accessKey = null;
        WorldManager.instance.m_player.m_cryptKey  = null;

        ReleaseGMBridge();

        if (StateManager.instance.m_curStateType.Equals(STATE_TYPE.STATE_TITLE))
        {
            if (CheckHasUserCenter)
            {
                ((State_Title)StateManager.instance.m_curState).UpdateLoginUI(true);
            }
            else
            {
                State_Title sTitle = (State_Title)StateManager.instance.m_curState;
                sTitle.m_guiTitleManager.OnOffLoginButton(false);

                NetworkManager.instance.SendSdkLogin(SdkManager.instance.MakeSSdkLoginParam());
            }
        }
    }
Пример #2
0
    private void Awake()
    {
        titleManager_.initialize();

        humanWalkRule_.setup(this);
        humanRunRule_.setup(this);
        shipRule_.setup(this);

        passengerRule_[0] = humanWalkRule_;
        passengerRule_[1] = humanRunRule_;
        passengerRule_[2] = shipRule_;

        uiCanvas_.gameObject.SetActive(false);

        state_ = new State_Title(this);
    }