Files
Cielonos/Packages/com.opsive.behaviordesigner/Runtime/Tasks/Events/Start.cs
2026-05-10 11:47:55 -04:00

28 lines
1.1 KiB
C#

#if GRAPH_DESIGNER
/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Runtime.Tasks.Events
{
using Opsive.GraphDesigner.Runtime;
using UnityEngine;
/// <summary>
/// The EventNode that is invoked when the behavior tree starts.
/// </summary>
[NodeIcon("8c35407905159694e8b83df15d3b039b", "df820d6e71423194188c7dcb1c1ae2e2")]
public class Start : IEventNode
{
[Tooltip("Specifies if the node is enabled.")]
[SerializeField] protected bool m_Enabled = true;
[Tooltip("The index of the ITreeLogicNode that the IEventNode is connected to. ushort.MaxValue indicates no connection.")]
[SerializeField] protected ushort m_ConnectedIndex;
public ushort Index { get; set; }
public bool Enabled { get => m_Enabled; set => m_Enabled = value; }
public ushort ConnectedIndex { get => m_ConnectedIndex; set => m_ConnectedIndex = value; }
}
}
#endif