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

18 lines
454 B
C#

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