2019-10-16 01:43:51 +02:00

18 lines
439 B
C#

using UnityEngine;
namespace UnityAtoms.MonoHooks
{
/// <summary>
/// Mono Hook for [`OnDestroy`](https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnDestroy.html)
/// </summary>
[EditorIcon("atom-icon-delicate")]
[AddComponentMenu("Unity Atoms/Hooks/On Destroy")]
public sealed class OnDestroyHook : VoidHook
{
private void OnDestroy()
{
OnHook(new Void());
}
}
}