Hi,
here it is:
#pragma strict
import HutongGames.PlayMaker;
function Start () {
// get the global variable pointer
var _globalstring:FsmString = FsmVariables.GlobalVariables.FindFsmString("global string");
// output its value
Debug.Log(_globalstring.Value);
// set a new value
_globalstring.Value = "new value";
// coutput the new value. Also check in the Global variable browser, the new value will be displaed there too.
Debug.Log(_globalstring.Value);
}
bye,
Jean