mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-16 14:09:00 +07:00
25 lines
609 B
C#
Executable File
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();
|
|
}
|
|
}
|
|
} |