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

13 lines
No EOL
458 B
C#

using UnityEngine;
[CreateAssetMenu(menuName = "CharacterStateMachine/Decisions/InitiatedInteraction")]
public class InitiatedInteractionDecision : Decision
{
public override bool Decide(StateController controller)
{
return controller.SelectedInteraction != null &&
InteractionPanelController.InteractionPrompted() &&
controller.SelectedObject != null &&
controller.SelectedInteraction != null;
}
}