Currently i am working on a temporary login script and it uses playerpref. It is temp so i now that it isnt that secure its just used for me and my team to have somewhat type of security an and will be able to visualize our game better but i am getting a problem.
I am pretty sure that this is where my problem is at but if it isnt ill edit this post to show my full script but in different programming languages i know you can do this and i tried to see if it was possible in c# so i tried it and didnt get any errors so i thought it worked but here is the section of coding.
if(isUserNameCorrect == true | isPasswordCorrect == true){
isInfoCorrect = true;
}
Now in a different area of the script it checks if isInfoCorrent = true and it says its true if the isUserNameCorrect == true and basically it just seems like its not noticing the isPasswordCorrect and i have the variables set up and everything so i know what im doing does “work” but it still allows you to login even without the isPasswordCorrect equaling true… This is causing quite a problem and i just want to know what i can do to fix this.
I have also tried doing this
if(isUserNameCorrect == true || isPasswordCorrect == true){
isInfoCorrect = true;
}
Neither of them get errors but both of them have the same problem.
Thanks in advance,
Brennan