You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
573 B
C#

using UnityEngine;
namespace MalbersAnimations.Controller.AI
{
/// <summary>This Decision Check if a Task is Done </summary>
[CreateAssetMenu(menuName = "Malbers Animations/Pluggable AI/Decision/Task Done Decision", order = 200)]
public class TaskDecision : MAIDecision
{
public override string DisplayName => "General/Is Task Done?";
[Space, Tooltip("What Task Index you want to check if is Done")]
public int TaskIndex;
public override bool Decide(MAnimalBrain brain, int index) => brain.IsTaskDone(TaskIndex);
}
}