mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
18 lines
423 B
C#
18 lines
423 B
C#
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());
|
|
}
|
|
}
|
|
}
|