Hi, I was looking some guide to my problem.
I have done a mini-game using unity and c# outside adventure creator. But I need some variables to check if you win or not.
For example: end the minigame win=true and in adventure creator that reflex the same variable.
Another thing the minigame is in another scene so the idea is the same you enter the minigame change scene without ac, and then came back to the scene with ac with the results.
Comments
After AC switches to a non-AC scene with the Scene: Switch Action, the PersistentEngine will still be present in the scene hierarchy but will sleep until you re-enter an AC scene (i.e. one with a GameEngine in it). During this time, however, you can still manipulate AC Global Variables through script.
using UnityEngine;
}
I have the global string with an initial value called "as" but nothing happens with my variable ref, is still empty.
Any solution?
As it's not clear if AC has yet initialised (since you're running this in Start), try renaming "Start" to "Update" to see if it's eventually reading it.
I have an empty object with the script. Nothing in the console. I try with Debug.Log(GlobalVariables.GetStringValue(33, true, 0)); in the update and again an empty string.
Thanks