[HOTFIX] 전체적인 투두 및 로그 정리
This commit is contained in:
parent
111a899d3e
commit
1341926e0d
@ -68,7 +68,6 @@ public class GradleProcessor : IPostGenerateGradleAndroidProject
|
|||||||
File.WriteAllText(gradlepath, contents);
|
File.WriteAllText(gradlepath, contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO (b/311555203) Use delete then write approach above to update this Gradle script too.
|
|
||||||
var unityLibraryGradle = Directory.GetFiles(rootPath, "unityLibrary/build.gradle",
|
var unityLibraryGradle = Directory.GetFiles(rootPath, "unityLibrary/build.gradle",
|
||||||
SearchOption.TopDirectoryOnly);
|
SearchOption.TopDirectoryOnly);
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ namespace GoogleMobileAds.Editor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(@vkini): read from default Unity baseProjectTemplate.gradle file
|
|
||||||
private static string DefaultAndroidGradlePlugin()
|
private static string DefaultAndroidGradlePlugin()
|
||||||
{
|
{
|
||||||
#if UNITY_2022_3_OR_NEWER
|
#if UNITY_2022_3_OR_NEWER
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
public class Constants
|
public class Constants
|
||||||
{
|
{
|
||||||
public const string ServerURL = "http://localhost:3000";
|
public const string ServerURL = "https://superb-hally-fiore-3b22d78a.koyeb.app";
|
||||||
public const string GameServerURL = "ws://localhost:3000";
|
public const string GameServerURL = "ws://superb-hally-fiore-3b22d78a.koyeb.app";
|
||||||
public const int BoardSize = 15;
|
public const int BoardSize = 15;
|
||||||
public const int ReplayMaxRecordSize = 10;
|
public const int ReplayMaxRecordSize = 10;
|
||||||
public const int WIN_COUNT = 5;
|
public const int WIN_COUNT = 5;
|
||||||
|
@ -73,7 +73,6 @@ public partial class GameLogic : IDisposable
|
|||||||
|
|
||||||
MultiPlayManager = new MultiplayManager((state, data) =>
|
MultiPlayManager = new MultiplayManager((state, data) =>
|
||||||
{
|
{
|
||||||
Debug.Log($"## {state}");
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case Constants.MultiplayManagerState.CreateRoom:
|
case Constants.MultiplayManagerState.CreateRoom:
|
||||||
@ -431,7 +430,6 @@ public partial class GameLogic : IDisposable
|
|||||||
}
|
}
|
||||||
else // 로컬에서 자신의 타이머 기준으로 상대방이 타임 오버일 때
|
else // 로컬에서 자신의 타이머 기준으로 상대방이 타임 오버일 때
|
||||||
{
|
{
|
||||||
// TODO: 컨펌 패널 OK 버튼 삭제?
|
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("상대방의 응답을 기다리는 중입니다",
|
GameManager.Instance.panelManager.OpenConfirmPanel("상대방의 응답을 기다리는 중입니다",
|
||||||
() => { }, false, false );
|
() => { }, false, false );
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,6 @@ public class GameManager : Singleton<GameManager>
|
|||||||
|
|
||||||
private void OnApplicationQuit()
|
private void OnApplicationQuit()
|
||||||
{
|
{
|
||||||
Debug.Log("앱 종료 감지: 소켓 연결 정리 중...");
|
|
||||||
if (_gameLogic == null) return;
|
if (_gameLogic == null) return;
|
||||||
if(_gameLogic.GameInProgress)
|
if(_gameLogic.GameInProgress)
|
||||||
_gameLogic?.ForceQuit();
|
_gameLogic?.ForceQuit();
|
||||||
|
@ -88,7 +88,6 @@ public partial class GameLogic
|
|||||||
{
|
{
|
||||||
SetState(null);
|
SetState(null);
|
||||||
ReplayManager.Instance.SaveReplayDataResult(result);
|
ReplayManager.Instance.SaveReplayDataResult(result);
|
||||||
//TODO: 게임 종료 후 행동 구현
|
|
||||||
ChangeGameInProgress(false);
|
ChangeGameInProgress(false);
|
||||||
// 인게임 버튼 표시
|
// 인게임 버튼 표시
|
||||||
GameManager.Instance.SetButtonsIndicator(false);
|
GameManager.Instance.SetButtonsIndicator(false);
|
||||||
|
@ -129,7 +129,6 @@ public class MultiplayManager : IDisposable
|
|||||||
// 연결될 때까지 대기
|
// 연결될 때까지 대기
|
||||||
while (!_socket.Connected)
|
while (!_socket.Connected)
|
||||||
{
|
{
|
||||||
Debug.Log("소켓 연결 대기 중...");
|
|
||||||
await Task.Delay(100); // 0.1초 대기 후 다시 확인
|
await Task.Delay(100); // 0.1초 대기 후 다시 확인
|
||||||
}
|
}
|
||||||
_socket.Emit("registerPlayer", new { nickname, rating, imageIndex });
|
_socket.Emit("registerPlayer", new { nickname, rating, imageIndex });
|
||||||
@ -145,7 +144,6 @@ public class MultiplayManager : IDisposable
|
|||||||
private void JoinRoom(SocketIOResponse response)
|
private void JoinRoom(SocketIOResponse response)
|
||||||
{
|
{
|
||||||
var data = response.GetValue<JoinRoomData>();
|
var data = response.GetValue<JoinRoomData>();
|
||||||
Debug.Log($"룸에 참여: 룸 ID - {data.roomId}, 상대방 등급 - {data.opponentRating}, 상대방 이름 - {data.opponentNickname}, 흑/백 여부 - {data.isBlack}, 상대방 이미지 인덱스 - {data.opponentImageIndex}");
|
|
||||||
_roomId = data.roomId;
|
_roomId = data.roomId;
|
||||||
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.JoinRoom, data);
|
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.JoinRoom, data);
|
||||||
}
|
}
|
||||||
@ -153,14 +151,12 @@ public class MultiplayManager : IDisposable
|
|||||||
private void SwitchAI(SocketIOResponse response)
|
private void SwitchAI(SocketIOResponse response)
|
||||||
{
|
{
|
||||||
var data = response.GetValue<MessageData>();
|
var data = response.GetValue<MessageData>();
|
||||||
Debug.Log("switchAI: " + data.message);
|
|
||||||
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.SwitchAI, data.message);
|
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.SwitchAI, data.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StartGame(SocketIOResponse response)
|
private void StartGame(SocketIOResponse response)
|
||||||
{
|
{
|
||||||
var data = response.GetValue<StartGameData>();
|
var data = response.GetValue<StartGameData>();
|
||||||
Debug.Log($"게임 시작: 상대방 ID - {data.opponentId}, 상대방 등급 - {data.opponentRating}, 상대방 이름 - {data.opponentNickname}, 흑/백 여부 - {data.isBlack}, 상대방 이미지 인덱스 - {data.opponentImageIndex}");
|
|
||||||
|
|
||||||
// 필요한 데이터 사용
|
// 필요한 데이터 사용
|
||||||
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.StartGame, data);
|
_onMultiplayStateChanged?.Invoke(Constants.MultiplayManagerState.StartGame, data);
|
||||||
@ -174,7 +170,6 @@ public class MultiplayManager : IDisposable
|
|||||||
if (data != null && data.position != null)
|
if (data != null && data.position != null)
|
||||||
{
|
{
|
||||||
Vector2Int opponentPosition = new Vector2Int(data.position.x, data.position.y);
|
Vector2Int opponentPosition = new Vector2Int(data.position.x, data.position.y);
|
||||||
Debug.Log($"상대방의 위치: {opponentPosition}");
|
|
||||||
OnOpponentMove?.Invoke(new MoveData { position = data.position });
|
OnOpponentMove?.Invoke(new MoveData { position = data.position });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -187,7 +182,6 @@ public class MultiplayManager : IDisposable
|
|||||||
// 플레이어의 마커 위치를 서버로 전달하기 위한 메서드
|
// 플레이어의 마커 위치를 서버로 전달하기 위한 메서드
|
||||||
public void SendPlayerMove(string roomId, Vector2Int position)
|
public void SendPlayerMove(string roomId, Vector2Int position)
|
||||||
{
|
{
|
||||||
Debug.Log($"내 위치: {position}");
|
|
||||||
_socket.Emit("doPlayer", new
|
_socket.Emit("doPlayer", new
|
||||||
{
|
{
|
||||||
roomId,
|
roomId,
|
||||||
@ -367,7 +361,7 @@ public class MultiplayManager : IDisposable
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(_roomId))
|
if (string.IsNullOrEmpty(_roomId))
|
||||||
{
|
{
|
||||||
Debug.LogError("requestDraw 호출 실패: _roomId가 설정되지 않음");
|
Debug.LogError("RequestRevengeRequest 호출 실패: _roomId가 설정되지 않음");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_socket.Emit("requestRevenge",new { roomId = _roomId });
|
_socket.Emit("requestRevenge",new { roomId = _roomId });
|
||||||
|
@ -147,7 +147,6 @@ public class SignupPanelController : MonoBehaviour
|
|||||||
|
|
||||||
// 이메일 유효하지 않음
|
// 이메일 유효하지 않음
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("올바른 이메일 주소를 입력하세요.", () => {});
|
GameManager.Instance.panelManager.OpenConfirmPanel("올바른 이메일 주소를 입력하세요.", () => {});
|
||||||
Debug.Log("이메일 유효성 X");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -186,7 +185,6 @@ public class SignupPanelController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
// 비밀번호 글자 수 제한
|
// 비밀번호 글자 수 제한
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("비밀번호는 6자 이상 18자 이하로 입력해주세요.", () => {});
|
GameManager.Instance.panelManager.OpenConfirmPanel("비밀번호는 6자 이상 18자 이하로 입력해주세요.", () => {});
|
||||||
Debug.Log("비밀번호 글자 수 제한");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,6 @@ public class DoubleFourCheck : ForbiddenDetectorBase
|
|||||||
// 한줄로 발생하는 쌍사 패턴 검사
|
// 한줄로 발생하는 쌍사 패턴 검사
|
||||||
if (patternStr.Contains("●●□●●□●●") || patternStr.Contains("●□●●●□●"))
|
if (patternStr.Contains("●●□●●□●●") || patternStr.Contains("●□●●●□●"))
|
||||||
{
|
{
|
||||||
Debug.Log("patternStr: " + patternStr);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -427,8 +427,6 @@ public class RenjuDoubleThreeDetector : ForbiddenDetectorBase
|
|||||||
if (!formsDoubleFour)
|
if (!formsDoubleFour)
|
||||||
{
|
{
|
||||||
canFormFourCount++;
|
canFormFourCount++;
|
||||||
// 디버깅
|
|
||||||
// Debug.Log($"Can form four at ({emptyPos.x}, {emptyPos.y}) without double four");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,6 @@ public class RatingPointsController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
public void InitRatingPoints(int oldScore,Enums.GameResult gameResult, int defaultRequiredScore)
|
public void InitRatingPoints(int oldScore,Enums.GameResult gameResult, int defaultRequiredScore)
|
||||||
{
|
{
|
||||||
// TODO: [인덱스계산 ㅇㅖ외처리 ] 계산한 값 절대값이 defaultRequiredScore보다 큰 경우 return. 근데 이런 값이 나온다는게 이미 계산 오류가 어디서 생긴 것이겠죠..?
|
|
||||||
_oldScore = oldScore;
|
_oldScore = oldScore;
|
||||||
_oldRequiredScore = defaultRequiredScore;
|
_oldRequiredScore = defaultRequiredScore;
|
||||||
if (_oldScore == 0)
|
if (_oldScore == 0)
|
||||||
|
@ -36,8 +36,6 @@ public class PanelManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
effectPanelPrefabs[effect.name] = effect;
|
effectPanelPrefabs[effect.name] = effect;
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug.Log($"총 {panelPrefabs.Count}개의 패널이 로드됨.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetCanvas()
|
void SetCanvas()
|
||||||
@ -343,10 +341,7 @@ public class PanelManager : MonoBehaviour
|
|||||||
public void RemoveCoinsPanelUI(Action onComplete)
|
public void RemoveCoinsPanelUI(Action onComplete)
|
||||||
{
|
{
|
||||||
NetworkManager.Instance.DeductCoins((i) =>
|
NetworkManager.Instance.DeductCoins((i) =>
|
||||||
{
|
{ }, (failMessage) =>
|
||||||
//Todo: 감소된 코인 값으로 확장할 기능 추가
|
|
||||||
|
|
||||||
}, (failMessage) =>
|
|
||||||
{
|
{
|
||||||
Debug.Log(failMessage);
|
Debug.Log(failMessage);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user