Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / Conditions / IsDead.cs
@Rackday Rackday on 3 Sep 318 bytes Minor Update
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using MyCollections.AI.FinitStateMachine;
  5. [CreateAssetMenu(menuName = "Finite State Machine/Condition/IsDead")]
  6. public class IsDead : Condition
  7. {
  8. public override bool CheckCondition(FSM fsm) => fsm.Controller.CurrentHealth() <= 0f;
  9. }