2026-03-20 스왑버튼 구현, 서버변경

This commit is contained in:
2026-03-20 18:04:24 +09:00
parent 4c0c1b6b41
commit e0116ec98c
8 changed files with 209 additions and 6 deletions

View File

@@ -32,8 +32,8 @@ private void Awake()
private async Awaitable Start()
{
//await LoadUserCharacters(1);
//await LoadPlayableCharacters();
await LoadUserCharacters(1);
await LoadPlayableCharacters();
}
public async Awaitable LoadUserCharacters(int userNo)

View File

@@ -9,8 +9,8 @@ public class NetworkManager : MonoBehaviour
{
public static NetworkManager Instance;
private string _baseGameDBUrl = "https://localhost:7134/myGame";
//private string _baseGameDBUrlHttp = "http://localhost:5281/myGame";
//private string _baseGameDBUrl = "https://localhost:7134/myGame";
private string _baseGameDBUrlHttp = "http://152.69.235.249:5000/myGame";
private void Awake()
{
@@ -26,7 +26,7 @@ private void Awake()
public async Awaitable<T> GetDatabaseData<T>(string endPoint)
{
string url = $"{_baseGameDBUrl}/{endPoint}";
string url = $"{_baseGameDBUrlHttp}/{endPoint}";
using UnityWebRequest request = UnityWebRequest.Get(url); //앞의 using은 사용이 끝난(메서드 종료) 외부 리소스 객체들을 알아서 지워주도록 설정하는 예약어이다
request.certificateHandler = new BypassCertificate();