문의 응대 : 평일 오전 10시 ~ 오후 6시
문의를 남기실 경우 다음 항목을 작성해 주세요.
정보가 부족하거나 응대시간 외 문의하는 경우 확인 및 답변이 지연될 수 있습니다.
- 뒤끝 SDK 버전 : 5.8.0
- 프로젝트명 : 주기율전쟁
- 스테이터스 코드 : 없음
- 에러 코드 : 없음
- 에러 메시지 : KeyNotFoundException: The given key was not present in the dictionary.
계속하는데 실패해서 질문합니다 초보에요
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BackEnd;
using LitJson;
public class Reading : MonoBehaviour
{
//public Hpinstee hpin;
public string date;
string[] select = { "Hp" };
static int hp;
public int hp2;
Dictionary<string, int> infor = new System.Collections.Generic.Dictionary<string, int>
{
{ "HP", hp }
};
public void Start()
{
date = Backend.UserInDate;
var bro = Backend.GameData.GetMyData("test", date, select);
JsonData jsonData = bro.GetReturnValuetoJSON();
hp = int.Parse(jsonData["Hp"]["N"].ToString());
hp2 = hp;
}
뭐가 틀린지 모르겠어요 hp가 잘 나오는지 확인하고 싶을뿐이에요 도와주세요