LADXHD/InGame/GameObjects/Base/Components/AI/AiTriggerUpdate.cs
2023-12-14 17:21:22 -05:00

20 lines
421 B
C#

namespace ProjectZ.InGame.GameObjects.Base.Components.AI
{
class AiTriggerUpdate : AiTrigger
{
public delegate void UpdateFunction();
public UpdateFunction UpdateFun;
public AiTriggerUpdate(UpdateFunction update)
{
UpdateFun = update;
}
public override void Update()
{
UpdateFun?.Invoke();
}
}
}