Skip to content

Commit

Permalink
회원가입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zabd0ng authored May 29, 2024
1 parent dfd68db commit 6ce3c36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Assets/2Scripts/Intro/SignManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class SignManager : MonoBehaviour
{
public static SignManager IT;
public static SignManager IT; // 싱글톤

[SerializeField] private string testId; // 테스트 아이디
[SerializeField] private string testPassword; // 테스트 비밀번호
Expand Down Expand Up @@ -129,6 +129,7 @@ private void SignIn()

private void SignUp()
{
// 아이디 패스워드 변수
var id = signUpId.text;
var password = signUpPassword.text;

Expand All @@ -138,6 +139,12 @@ private void SignUp()
signUpAlertText.text = "아이디를 입력해주세요.";
return;
}
// 아이디가 10자리 초과일 경우
if (id.Length > 10)
{
signUpAlertText.text = "아이디를 10자 이내로 입력해주세요.";
return;
}

if (password.Trim().Equals(""))
{
Expand Down
4 changes: 2 additions & 2 deletions Assets/2Scripts/Lobby/LobbyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,9 @@ public void ShowResult(string data)
// 개인전
"0" => new Color(0.7f, 0.7f, 0.7f, 0.8f),
// 레드
"1" => new Color(0.8f, 0.2f, 0.2f, 0.8f),
"1" => new Color(0.9f, 0.2f, 0.2f, 0.8f),
// 블루
"2" => new Color(0.2f, 0.2f, 0.8f, 0.8f),
"2" => new Color(0.2f, 0.2f, 0.9f, 0.8f),
_ => Color.magenta,
};
slot.GetComponent<Image>().color = c;
Expand Down

0 comments on commit 6ce3c36

Please sign in to comment.