I just wanted to point out that when adding the playModeStateChanged event, there is also a playmodeStateChanged field that is identical in name other than a lowercase M that if selected, can throw you for a loop!
Here is the one you do NOT want:
Here is the one you DO want:
At first Visual Studio wanted me to add “Obsolete” to my method and didn’t give me the PlayModeStateChange parameter so I was super confused for a minute until I realized there were two almost identical named items. Just be sure to grab the correct one and you’ll be fine!
Thanks!
Julian Boardman