unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnUpdateHook.cs
2019-10-16 01:43:51 +02:00

18 lines
428 B
C#

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