Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / Actions / IdleAction.cs
@Rackday Rackday on 27 Aug 370 bytes Minor Update
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MyCollections.AI.FinitStateMachine;

[CreateAssetMenu(menuName = "Finite State Machine/Action/Idle")]
public class IdleAction : Action
{
    public override void Run(FSM fsm)
    {
        Agent agent = fsm.Controller.Agent;

        if(agent != null) agent.agentStop = true;
    }

}