Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / PatrolAction.cs
@Rackday Rackday on 21 Aug 302 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Action/Patrol")]
  5. public class PatrolAction : Action
  6. {
  7. public override void Act(FiniteStateMachine fsm)
  8. {
  9. fsm.GetAgent().MoveToWaypoint();
  10. }
  11. }