[Style] 안쓰는 주석 등 삭제

This commit is contained in:
Jay 2025-03-14 22:06:03 +09:00
parent 565ffe1e5a
commit 246e297179
6 changed files with 4 additions and 17 deletions

View File

@ -45,8 +45,6 @@ public class CoinsPanelController : MonoBehaviour
_coinsCount = coinsCount;
coinsCountText.text = _coinsCount.ToString();
Debug.Log("coinsCount?: " + coinsCount);
ResizingCoinsRect();
}

View File

@ -16,7 +16,6 @@ public class GameManager : Singleton<GameManager>
private Enums.GameType _gameType;
private GameLogic _gameLogic;
private StoneController _stoneController;
private Canvas _canvas;
public Sprite[] profileSprites; //패널에서 사용할 테스트 배열
@ -29,7 +28,7 @@ public class GameManager : Singleton<GameManager>
_userManager = userManagerObj.AddComponent<UserManager>();
//게임 씬에서 확인하기 위한 임시 코드
_gameType = Enums.GameType.SinglePlay;
// _gameType = Enums.GameType.SinglePlay;
}
}
@ -90,7 +89,6 @@ public class GameManager : Singleton<GameManager>
if (_coinsPanel != null)
{
Debug.Log("UserManager.Instance.Coins?: " + UserManager.Instance.Coins);
_coinsPanel.InitCoinsCount(UserManager.Instance.Coins);
}
@ -132,6 +130,5 @@ public class GameManager : Singleton<GameManager>
_stoneController.InitStones();
_gameLogic = new GameLogic(_stoneController, _gameType);
}
_canvas = GameObject.Find("Canvas").GetComponent<Canvas>();
}
}

View File

@ -31,10 +31,8 @@ public class MainPanelController : MonoBehaviour
// 프로필 이미지 갱신
_selectedImageIndex = UserManager.Instance.imageIndex;
Debug.Log("UserManager.Instance.ImageIndex" + UserManager.Instance.imageIndex);
if (_selectedImageIndex < 0 || _selectedImageIndex >= profileImages.Length)
{
Debug.LogError($"Invalid ImageIndex: {_selectedImageIndex}, profileImages length: {profileImages.Length}");
return;
}

View File

@ -18,7 +18,6 @@ public class NetworkManager : Singleton<NetworkManager>
public IEnumerator SignupCoroutine(SignupData signupData, Action success, Action failure)
{
string jsonString = JsonUtility.ToJson(signupData);
Debug.Log("jsonString" + jsonString);
byte[] bodyRaw = System.Text.Encoding.UTF8.GetBytes(jsonString);
using (UnityWebRequest www =
@ -50,7 +49,6 @@ public class NetworkManager : Singleton<NetworkManager>
else
{
var result = www.downloadHandler.text;
Debug.Log("Result: " + result);
success?.Invoke();
// TODO: 회원가입 성공 팝업 표시
@ -84,7 +82,7 @@ public class NetworkManager : Singleton<NetworkManager>
if (www.result == UnityWebRequest.Result.ConnectionError ||
www.result == UnityWebRequest.Result.ProtocolError)
{
Debug.Log("Error: " + www.error);
}
else
{
@ -101,7 +99,7 @@ public class NetworkManager : Singleton<NetworkManager>
if (signinResult.result == 0)
{
Debug.Log("유저네임이 유효하지 않습니다.");
Debug.Log("유저 이메일이 유효하지 않습니다.");
failure?.Invoke(0);
// TODO: 유저네임 유효하지 않음 팝업 표시
// GameManager.Instance.OpenConfirmPanel("유저네임이 유효하지 않습니다.", () =>
@ -123,9 +121,7 @@ public class NetworkManager : Singleton<NetworkManager>
{
Debug.Log("로그인에 성공하였습니다.");
success?.Invoke(signinResult);
Debug.Log("서버 응답 JSON: " + result); // 서버 응답 확인
Debug.Log("파싱 후 SigninResult: " + JsonUtility.ToJson(signinResult)); // JSON 파싱 확인
Debug.Log("SetUserInfo 호출됨. imageIndex: " + signinResult.imageIndex); // UserManager에 값이 전달되는지 확인
// TODO: 성공 팝업 표시
// GameManager.Instance.OpenConfirmPanel("로그인에 성공하였습니다.", () =>
// {

View File

@ -105,7 +105,6 @@ public class SignupPanelController : MonoBehaviour
public void OnClickCancelButton()
{
Debug.Log("OnClickCancelButton");
Destroy(gameObject);
}
}

View File

@ -84,7 +84,6 @@ public class UserManager : Singleton<UserManager>
// Score = signinResult.score;
imageIndex = signinResult.imageIndex;
Coins = signinResult.coins;
Debug.Log("머임??: " + imageIndex);
}
public void SaveUserInfoToPlayerPrefs()