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/YouAcceptedInteractionDecision.cs
2017-11-30 12:07:05 -06:00

15 lines
416 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
[CreateAssetMenu(menuName = "CharacterStateMachine/Decisions/YouAcceptedInteraction")]
public class YouAcceptedInteractionDecision : Decision
{
public override bool Decide(StateController controller)
{
return controller.SelectedInteraction != null && controller.Interactor != null;
}
}