Hi I "wrote" this one liner, allowing you to pause the game editor playback from a fsm, really useful for debugging and testing step by step complex stuff when mouse is locked and you can't get to the pause button.
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Debug)]
[Tooltip("Pauses the game preview.")]
public class PauseEditor : FsmStateAction
{
public override void Reset()
{
}
public override void OnEnter()
{
Debug.Break();
Finish();
}
}
}
I didn't have put it on git, I will when I will have time for this
Cheers,
Pivetta