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

18 lines
423 B
C#
Raw Normal View History

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