11 lines
318 B
C#
11 lines
318 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(menuName = "CharacterStateMachine/Decisions/SelectedObject")]
|
|
public class SelectedObjectDecision : Decision
|
|
{
|
|
public override bool Decide(StateController controller)
|
|
{
|
|
return controller.SelectedObject != null && controller.SelectedInteraction != null;
|
|
}
|
|
}
|
|
|