unity-atoms/Source/MonoHooks/OnDestroyHook.cs
2019-05-29 18:52:27 +02:00

14 lines
246 B
C#

using UnityEngine;
namespace UnityAtoms
{
[AddComponentMenu("Unity Atoms/Hooks/On Destroy")]
public sealed class OnDestroyHook : VoidHook
{
private void OnDestroy()
{
OnHook(new Void());
}
}
}