2019-04-05 08:33:59 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
2019-10-01 11:27:22 -04:00
|
|
|
namespace UnityAtoms.SceneMgmt
|
2019-04-05 08:33:59 -04:00
|
|
|
{
|
2019-10-15 17:31:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Action to quit the application.
|
|
|
|
/// </summary>
|
2019-10-14 10:51:54 -04:00
|
|
|
[EditorIcon("atom-icon-purple")]
|
2019-05-29 12:52:27 -04:00
|
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Actions/Scene Management/Quit Application")]
|
2019-04-07 10:03:16 -04:00
|
|
|
public sealed class QuitApplication : VoidAction
|
2019-04-05 08:33:59 -04:00
|
|
|
{
|
2019-10-15 17:31:21 -04:00
|
|
|
/// <summary>
|
|
|
|
/// Do quit the apllication.
|
|
|
|
/// </summary>
|
2019-04-05 08:33:59 -04:00
|
|
|
public override void Do()
|
|
|
|
{
|
|
|
|
Application.Quit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|