Esempio n. 1
0
    // Step11. 게임 클라이언트에서 sdkUid 및 access_token를 UniSDK에게 전달..
    public void SdkGameLoginSucess(SSdkLoginRet packet)
    {
        string[] parseUserName = packet.username.Split('@');
        SdkU3d.setUserInfo(ConstProp.UID, parseUserName.Length > 0 ? parseUserName[0] : "");

        switch (m_appChannelType)
        {
        case APP_CHANNEL_TYPE.TYPE_UC:
        case APP_CHANNEL_TYPE.TYPE_360:
        case APP_CHANNEL_TYPE.TYPE_COOLPAD:
            SetTokenInfo(packet.message);
            break;

        case APP_CHANNEL_TYPE.TYPE_PPS:
            SdkU3d.setUserInfo(ConstProp.USERINFO_HOSTID, WorldManager.instance.m_player.m_hostId);
            break;
        }

        SdkU3d.ntGameLoginSuccess();
    }