Files
unity-iso-tools/Assets/PlayMaker/Actions/ApplicationRunInBackground.cs
2015-12-13 14:35:35 +06:00

25 lines
609 B
C#
Executable File

// (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();
}
}
}