Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / Conditions / IsDead.cs
@Rackday Rackday on 3 Sep 318 bytes Minor Update
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MyCollections.AI.FinitStateMachine;

[CreateAssetMenu(menuName = "Finite State Machine/Condition/IsDead")]
public class IsDead : Condition
{
    public override bool CheckCondition(FSM fsm) => fsm.Controller.CurrentHealth() <= 0f;
}