fix(#18): re-enable submit button if error
This commit is contained in:
parent
4fd38cea44
commit
61a3d4a499
@ -161,6 +161,7 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code)
|
||||
|
||||
nameError.text = "You have to put a valid name";
|
||||
nameError.gameObject.SetActive(true);
|
||||
submitNewPlayer.interactable = true;
|
||||
|
||||
return;
|
||||
}
|
||||
@ -170,6 +171,7 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code)
|
||||
Debug.LogError("Room code is empty", this);
|
||||
roomError.text = "You have to put a room code";
|
||||
roomError.gameObject.SetActive(true);
|
||||
submitNewPlayer.interactable = true;
|
||||
|
||||
return;
|
||||
}
|
||||
@ -186,6 +188,7 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code)
|
||||
Debug.LogError("The room doesn't exists");
|
||||
roomError.text = "Error: the room doesn't exists";
|
||||
roomError.gameObject.SetActive(true);
|
||||
submitNewPlayer.interactable = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user