Vote count:
0
So I'm having an issue where the if executes and then the else is executing as well the code looks like this below
if (PlayerManagement.players[i] == null){
print ("no");
}else{
print ("yes");
My console is printing both yes and no for the same object. Apparently it is both null and not null at the same time. How is this possible?
asked 1 min ago
Unity C# If and Else both executing
Aucun commentaire:
Enregistrer un commentaire