Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / Actions / MeleeAttackAction.cs
@Rackday Rackday on 29 Oct 377 bytes Major Update
  1. using UnityEngine;
  2. using System.Collections;
  3. using MyCollections.AI.FinitStateMachine;
  4. [CreateAssetMenu(menuName = "Finite State Machine/Action/MeleeAttackAction")]
  5. public class MeleeAttackAction : Action
  6. {
  7. public override void Run(FSM fsm)
  8. {
  9. base.Run(fsm);
  10. //Triggers the attack animation
  11. fsm.Controller.Animator.SetTrigger("Attack");
  12. }
  13. }