18 lines
444 B
C#
Raw Normal View History

2019-10-16 01:43:51 +02:00
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 Hook")]
2019-10-16 01:43:51 +02:00
public sealed class OnDestroyHook : VoidHook
{
private void OnDestroy()
{
OnHook(new Void());
}
}
}