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

18 lines
449 B
C#
Raw Normal View History

2020-03-01 20:26:06 -05:00
using UnityEngine;
2019-10-15 19:43:51 -04:00
2020-03-01 20:26:06 -05:00
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 Hook")]
public sealed class OnFixedUpdateHook : VoidHook
{
private void FixedUpdate()
{
OnHook();
}
}
}