merlo17
if statement always returns true
activeEnemy
gets set by the task StartRandomEncounters()
in my EventHandler script
Then in the other script, I have if (_eventHandler.activeEnemy == null)
as a stopping point so that the program doesn't shit itself if someone tries to do something while it is null, but it's when it isn't null, it still says that it is26 replies
if statement always returns true
Ok, so A. How do I do either of those? I've read over the code so many times and never found anything to tell me, hey this isn't going to read this. B. It can read a fixed value such as a ulong, but not a nullable value that changes
26 replies