LADXHD/InGame/GameObjects/Base/Components/AI/AiTriggerUpdate.cs

20 lines
421 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00

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();
}
}
}