so, i am currently having a minor problem that is causing crashes with every time i use it.
I have managed to develop the rolling mechanic, and make it work amazingly, but now im stuck with the ability to be invincible whilst rolling.
What i have, at the moment, is a game manager.
when the character goes to roll, it asks the game manager if it is on cooldown or not. If its not, the character continues with the roll action.
when i have the Harm zone (a scene that i add to enemies to make them and/or their attacks dodgable and do the same method when i attatch the scene to an enemy, it seems to have a problem going to the game manager and asking if the character is currently invincible or not.
this means that every time i roll into the enemy, invincible or not, it returns with null and doesnt work.
"Attempt to call function 'is_invincible' in base 'null instance' on a null instance"
i have added the code that apparently is affecting the problem, the tree for the main game, and the tree of the enemy (containing the harmer, which holds the script mentioned)