Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / AI / FSM / Actions / StalkerAttackAction.cs
@Rackday Rackday on 21 Aug 383 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Action/Stalker Attack")]
  5. public class StalkerAttackAction : Action
  6. {
  7. public override void Act(FiniteStateMachine fsm)
  8. {
  9. if (fsm.target != null)
  10. {
  11. fsm.GetAgent().MoveToTarget();
  12. }
  13. }
  14. }