Hi, I've run into a really weird and frustrating problem that I can't understand at all.
My player character has a model and a "hurtbox" (a trigger for attacks) both connected to a controller object. After working an entire year on the game, the controller object's FSM suddenly has started to switch variables and objects for no apparent reason. Two global variables pointing at the model and hurtbox, "PlayerModel" and "PlayerHurtboxMelee" switched positions, so all commands for player's animations and such are now sent to the hurtbox, and all hurtbox commands are going to the player model.
Today I decided to get rid of those global variables by simply pointing directly to the objects instead of variables, but lo and behold, now it actually switched the targeted player model and hurtbox objects too. Not just the names of the variables, but the objects themselves. I always manage to manually fix this error, but it keeps coming back.
I haven't changed the hierarchy or done anything drastic to the game so I can't pinpoint the reason for a bug like this. Just basic combat mechanics where the floats and bools change on the hurtbox and animations play on the character model.
Unfortunately I can't share the game since it's a huge project at this point. I'm really desperate. If this can't be fixed I might have to redo everything and even then hope that this won't repeat.
Playmaker version: 1.9.0
Unity version: 2019.2.8f1