﻿
using HutongGames.PlayMaker;

namespace SRDebugger.Playmaker.Actions
{

	[ActionCategory("SRDebugger")]
	[Tooltip("Set whether or not the profiler is docked.")]
	public class SetProfilerDocked : FsmStateAction
	{

		[Tooltip("True to enable the docked profiler, false to disable.")]
		[RequiredField]
		public FsmBool docked;

		public override void OnEnter()
		{
			SRDebug.Instance.IsProfilerDocked = docked.Value;
			Finish();
		}

	}

}