unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnFixedUpdateHook.cs
IceTrooper 23a8873462 Changed AddComponentMenu names for Listeners/Hooks (#84)
* changed AddComponentMenu names for Listeners

* renamed AddComponentMenu Listeners names in other packages

* renamed AddComponentMenu for hooks

* renamed double Listeners to "x 2" convention
2019-11-13 08:59:39 +01:00

18 lines
459 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 Hook")]
public sealed class OnFixedUpdateHook : VoidHook
{
private void FixedUpdate()
{
OnHook(new Void());
}
}
}