Files
beyond/Assets/ThirdParty/PlayMaker/Actions/Application/ApplicationRunInBackground.cs
2024-11-20 15:21:28 +01:00

25 lines
585 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Application)]
[Tooltip("Sets if the Application should play in the background. Useful for servers or testing network games on one machine.")]
public class ApplicationRunInBackground : FsmStateAction
{
public FsmBool runInBackground;
public override void Reset()
{
runInBackground = true;
}
public override void OnEnter()
{
Application.runInBackground = runInBackground.Value;
Finish();
}
}
}