Hi,
you can access global variables like so:
PlayMakerGlobals.Instance.Variables.GetFsmString("hello")
but be careful, if the variable doesn't exists, it will return the default value of the type ( for a bool it will return false)
using UnityEngine;
using System.Collections;
using HutongGames;
public class test : MonoBehaviour {
// Update is called once per frame
void Start () {
Debug.Log(PlayMakerGlobals.Instance.Variables.GetFsmString("hello"));
}
}
bye,
Jean