Describe the bug
I have multiple scenes with flowcharts in each of them with a few global variables. when trying to run the game and initially everything works correctly the global variables work as expected. However after running through and retrying by clicking play on the editor again it causes the error "NullReferenceException: Object reference not set to an instance of an object" and the class that it is referencing is handling global variables.
To Reproduce
Create multiple scenes with flowcharts.
Add global variables on each of the flowcharts to mirror my experience 2 string and 1 bool global variables.
Have C# scripts modify global variables by accessing the flowchart and saving strings/bools to them
Run through multiple times having a flowchart have excute on game started event and having say blocks that have the global variables in them.
Watch for unexpected/crashes/errors.
Expected behavior
Global variables to work as expected when running the game.
Screenshots
Versions & Platform (please complete the following information):
Describe the bug I have multiple scenes with flowcharts in each of them with a few global variables. when trying to run the game and initially everything works correctly the global variables work as expected. However after running through and retrying by clicking play on the editor again it causes the error "NullReferenceException: Object reference not set to an instance of an object" and the class that it is referencing is handling global variables.
To Reproduce
Expected behavior Global variables to work as expected when running the game.
Screenshots
Versions & Platform (please complete the following information):