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