플레이어 데이터 조회
다른 플레이어 데이터를 조회합니다.
호출 정보
public void PlayerDataLoad (string playerUserUniqueId, string storageKey, PlayNANOODelegate callback) {}
호출 상세 정보
파라미터 | 설명 | 타입 |
---|---|---|
playerUserUniqueId | 플레이어 아이디 | string |
storageKey | 플레이어 데이터 키 | string |
callback | 통신 결과 | PlayNANOODelegate |
소스 코드
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
plugin.Storage.PlayerDataLoad("PLAYER_ID", "STORAGE_KEY", (state, error, jsonString, values) => {
if (state.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["PlayerId"]);
Debug.Log(values["StorageKey"]);
Debug.Log(values["StorageValue"]);
}
else
{
Debug.Log("Fail");
}
});
}
}
통신 결과
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"PlayerId" : "String",
"StorageKey" : "String",
"StorageValue" : "String"
}
통신 결과 상세 정보
데이터키 | 설명 | 타입 |
---|---|---|
PlayerId | 플레이어 아이디 | string |
StorageKey | 저장 데이터 키 | string |
StorageValue | 저장 데이터 정보 | string |