I have been stuck on the coding for the turn based combat for bloody ages. If it’s not one thing it’s another. First, it started off as just a couple parameters that needed changing within some scripts but as I continued to add more to the script and creating more prefabs that were needed for the project the less things worked. It turned into just errors with the prefabs, then it ended up messing up the prefabs which has in turn resulted into the project not working anymore. I don’t now what to do, it’s one day past the assignment due date and I can’t seem to get anything to work as as soon as I start the scene it instantly pauses itself coming up with the error of:
NullReferenceException: Object reference not set to an instance of an object
BattleStateMachine.EnemyButtons () (at Assets/Scripts/BattleStateMachine.cs:143)
BattleStateMachine.Start () (at Assets/Scripts/BattleStateMachine.cs:57)
But the thing is it does have a reference because it worked two minutes before hand. I just feel as though this project was something that I was going to love as it was a game that I wanted to make for so long. Instead it has resulted in me hating coding and everything to do with unity as no matter what I seem to do within the software it always ends up messing up, almost like it was destroying itself.
At this point I’ve done all the other three games, it comes down to literally it being a case of getting the turn based combat done, and then connecting them all up using the scene manager, which I can already tell is going to go terribly just from the way that things have been going so far.
I understand I shouldn’t have left it this late to finish off the major project, seeming we had a whole year to sort this out but I also know that there’s nothing I can do about that no other than hope that whatever I can create is good enough to be a pass.
