Can't acces dialogue system variables on runtime
Posted: Fri Oct 28, 2022 6:25 am
Hi Tony,
we have an issue with the dialogue system, variables. We want to check the value of some variables to activate or deactivate some icons on our menus.
We're trying to access the variables we have in the database that is in our game manager and In order to do that, we access the database manager that the dialogue system controller has and we store the default database in a variable.
With that stored database we want to access some variables and check their values to know whether if we have to set some buttons active or not. In order to achieve that we iterate that array and we look the int that the database has stored for those variables.
The problem is that those variables, have always the same value, even though we are changing their values. This changes are reflected on the watches table that we can look at in Unity but we don't know how to access it through C# code. We'd like to know how should we access those variables that are stored in the database.
Thanks for everything!
we have an issue with the dialogue system, variables. We want to check the value of some variables to activate or deactivate some icons on our menus.
We're trying to access the variables we have in the database that is in our game manager and In order to do that, we access the database manager that the dialogue system controller has and we store the default database in a variable.
With that stored database we want to access some variables and check their values to know whether if we have to set some buttons active or not. In order to achieve that we iterate that array and we look the int that the database has stored for those variables.
The problem is that those variables, have always the same value, even though we are changing their values. This changes are reflected on the watches table that we can look at in Unity but we don't know how to access it through C# code. We'd like to know how should we access those variables that are stored in the database.
Thanks for everything!