- Home /
Question by
Chris12345 · Mar 22, 2013 at 09:29 PM ·
playmaker
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;
}
}
}
Comment
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Unity and Playmaker - Flashlight Decrease Logic 0 Answers
Collision Detection in Capsule Collider 0 Answers
Upgrading Unity 3.2 Problems 2 Answers
Prevent colliders intersecting. 1 Answer