ProjectDDD/Packages/com.opsive.behaviordesigner/Runtime/Groups/TaskSystemGroup.cs

41 lines
1.1 KiB
C#
Raw Normal View History

2025-08-19 09:53:26 +00:00
#if GRAPH_DESIGNER
/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Runtime.Groups
{
using System;
using Unity.Entities;
using UnityEngine;
/// <summary>
/// Group that executes all of the tasks.
/// </summary>
[UpdateInGroup(typeof(TraversalSystemGroup))]
public partial class TraversalTaskSystemGroup : ComponentSystemGroup
{
[Tooltip("Callback before the outher tasks are updated.")]
public Action OnPreUpdate;
[Tooltip("Callback after the outher tasks are updated.")]
public Action OnPostUpdate;
/// <summary>
/// Updates the group.
/// </summary>
protected override void OnUpdate()
{
if (OnPreUpdate != null) {
OnPreUpdate();
}
base.OnUpdate();
if (OnPostUpdate != null) {
OnPostUpdate();
}
}
}
}
#endif