I have the killValue and KillManager so everything is working perfectly with my score system and kills system. However I want my character to kill for example 20 zombies and than go to level 2 after that!
Somebody can help me?
I have the killValue and KillManager so everything is working perfectly with my score system and kills system. However I want my character to kill for example 20 zombies and than go to level 2 after that!
Somebody can help me?
if(zombieKill > someNum)
Application.LoadLevel(someLevel)
Please search first, there are many, many duplicate posts like this if you need additional info Google/Search has it.
Not to be a nerd here but if you want it to be a specific number you'll want if(zombieKill >= someNum) { Application.LoadLevel(someLevel); } note the greaterthan or equal to change made. Otherwise it will only run once you have +1 the number you want.
– SpaceManDanYep, IsNullOrEmpty is the best choice. However as far as i know it's usually null when no error happens, but IsNullOrEmpty is the better choice and your ready for a possible internal change of the WWW class in the future ^^. btw: Maybe edit your answer, add this example and remove the wrong one before you get a downvote? :)
– Bunny83
Oh you're right. Also I forgot error was a string, so what you should actually use is :
– Garazbolgif (!string.IsNullOrEmpty(RegisterAccountWWW.error)){