unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnUpdateHook.cs

18 lines
428 B
C#
Raw Normal View History

2019-10-15 19:43:51 -04:00
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());
}
}
}