Check playmaker variable script?

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;
      }
}
}

1 Answer

1

Sorry found out how using playmaker