how can i check if a playmaker variable is true before running this script?
using UnityEngine;
using System.Collections;
public class pausebackers : MonoBehaviour {
public PlayMakerFSM theFsm;
void OnApplicationPause(bool paused)
{
if (!paused)
{
theFsm.FsmVariables.GetFsmBool("exit").Value = true;
}
}
}