feat: 뒤끝 서버 연결 테스트 및 에셋 추가
This commit is contained in:
31
Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs
Normal file
31
Gameton-06/Assets/Gameton/Scripts/Common/BackendManager.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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대 에러 발생
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 997aacd350268d041bba7f34cf767394
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user