unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnDestroyHook.cs
Adam Ramberg c3bc59259f More WIP
2020-03-02 02:26:06 +01:00

18 lines
434 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 Hook")]
public sealed class OnDestroyHook : VoidHook
{
private void OnDestroy()
{
OnHook();
}
}
}