This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
project-undercover/Project Undercover/Assets/Scripts/CharacterStateMachine/DecisionScripts/InterruptedDecision.cs

18 lines
475 B
C#
Raw Normal View History

2017-10-03 04:15:13 -05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "CharacterStateMachine/Decisions/Interrupted")]
public class InterruptedDecision : Decision
{
public override bool Decide(StateController controller)
{
if (controller.characterAnimator.GetTrigger(CharacterAnimator.Params.Interrupted))
{
Debug.Log("Interrupted");
return true;
}
return false;
}
}