using UnityEngine;
using System.Collections;
public class pausebackers : MonoBehaviour {
public PlayMakerFSM theFsm;
void OnApplicationPause(bool paused)
{
if (!paused)
{
theFsm.FsmVariables.GetFsmBool("exit").Value = true;
}
}
}
Why does this script have a Null error? and what is wrong with it?
Here is the error:NullReferenceException: Object reference not set to an instance of an object
pausebackers.OnApplicationPause (Boolean paused) (at Assets/pausebackers.cs:11)