public SdkLoginData(string userNo, string uid, RES_SDK_LOGIN packet) { this.sdkLoginAuthInfo = packet.sdkLoginRet; this.uid = uid; this.userNo = userNo; this.accessKey = packet.accessKey; this.criptKey = packet.criptKey; }
// 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(); }