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

16 lines
416 B
C#
Raw Normal View History

2017-10-08 18:37:19 -05:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
[CreateAssetMenu(menuName = "CharacterStateMachine/Decisions/YouAcceptedInteraction")]
2017-10-09 18:55:07 -05:00
public class YouAcceptedInteractionDecision : Decision
2017-10-08 18:37:19 -05:00
{
public override bool Decide(StateController controller)
{
return controller.SelectedInteraction != null && controller.Interactor != null;
2017-10-08 18:37:19 -05:00
}
}