본문으로 건너뛰기

점수 기록

플레이어의 점수를 기록하여 리더보드 서비스에 등록합니다.
플레이어의 점수는 콘솔에 설정 한 리더보드 기록방식에 따라 다소 차이가 발생 할 수 있습니다.

호출 정보​

public void Record (string tableCode, string recordId, double score, string extraData, PlayNANOODelegate callback)

호출 상세 정보​

파라미터설명타입
tableCode테이블 코드string
recordId기록 아이디 (예. 플레이어 아이디)string
score기록 점수double
extraData추가 데이터string
callback통신 결과PlayNANOODelegate

소스 코드​

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

plugin.LeaderboardManagerV20240301.Record(tableCode, recordId, score, extraData, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}

통신 결과​

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status": "success"
}

통신 결과 상세 정보​

데이터키설명타입
Status처리 결과string