Hi Everyone,
I have a script i made before i started using playmaker and am trying to combine the 2 together but having a problem.
I add a value to a playpref within the script and then use playmaker to check if the value is there and if it is load the next section.
The problem is that it is not loading the next scene until i stop the test and restart it.
Is there any way to refresh a state so the the fsm can realise the playerpref is updated?
Below is where i add the playerpref value
----------
void OnGUI()
{
GUILayout.BeginVertical();
if (solved == placedWords.Count)
{
PlayerPrefs.SetInt("GameComplete",1);
GUI.Box(new Rect((Screen.width / 2) - 100, (Screen.height / 2) - 15, 200, 30), "Solved!");
GUILayout.BeginHorizontal();
GUILayout.Label("Time ");
GUILayout.Label(FinalTime());
}
---------
Any help would be great.
Thanks,
Adam