32 lines
785 B
C#
32 lines
785 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
// 뒤끝 SDK namespace 추가
|
|
using BackEnd;
|
|
|
|
namespace TON
|
|
{
|
|
/// <summary>
|
|
/// 랭킹 데이터 관리를 위한 뒤끝 서버 매니저
|
|
/// </summary>
|
|
public class BackendManager : MonoBehaviour
|
|
{
|
|
void Start()
|
|
{
|
|
var bro = Backend.Initialize(); // 뒤끝 초기화
|
|
|
|
// 뒤끝 초기화에 대한 응답값
|
|
if (bro.IsSuccess())
|
|
{
|
|
Debug.Log("초기화 성공 : " + bro); // 성공일 경우 statusCode 204 Success
|
|
}
|
|
else
|
|
{
|
|
Debug.LogError("초기화 실패 : " + bro); // 실패일 경우 statusCode 400대 에러 발생
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|