I have been trying to complete my text101 and have come across an issue.
Although it all works my final state (freedom) doesn’t actually display. Unity recognises the state is active but the UI doesn’t update and freezes.
Here is the code in the fastest route I can manage at this stage;
https://gist.github.com/anonymous/2ab32bce071bbd5d639fc4a9c1858d1c
Full code:
https://gist.github.com/anonymous/4ad29d6b3c0fcd9c2d3641c142936824
After looking at the code again the next day I found the problem straight away! For those interested in my list of states I had forgotten to change the name of Floor_0 to freedom.
else if (myState == States.floor_0) {floor_0();}
else if (myState == States.floor_0) {freedom();}}
Thanks for helping!