mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 00:28:23 -05:00
22 lines
493 B
C#
22 lines
493 B
C#
using UnityEngine;
|
|
|
|
namespace UnityAtoms.SceneMgmt
|
|
{
|
|
/// <summary>
|
|
/// Action to quit the application.
|
|
/// </summary>
|
|
[EditorIcon("atom-icon-purple")]
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Actions/Scene Management/Quit Application")]
|
|
public sealed class QuitApplication : AtomAction
|
|
{
|
|
/// <summary>
|
|
/// Do quit the apllication.
|
|
/// </summary>
|
|
public override void Do()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|
|
|