Hello folks!
Just wanna know, how do i check if the match password is correct before joining it?
But i can’t find the password option into “match”, theres only a bool that returns if the match as or not a password…
I’m trying to accomplish something like this.
Thanks!
public void JoinRoom()
{
if (match.isPrivate)
{
// Does have password
// Check password
string tempPassword = password.text;
if ( match.password == tempPassword)
{
// Password is corect
// Join Room Code here...
}
else
{
// Password is wrong!
// Incorrect password code here...
}
}
else
{
// Doesn't have password
// Join room code here...
}
}