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

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