ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.Instructions.InteractionRequirement Class Reference

ScriptableObject instruction requirement for Grabber/Grabbable interactions.

Inheritance diagram for ManoMotion.Instructions.InteractionRequirement:
ManoMotion.Instructions.InstructionRequirement

Public Types

enum  InteractType { Grab , Release , Click , Drag }
 

Public Member Functions

override bool IsFulfilled ()
 Returns true if the requirement has been fulfilled, can make Update checks in here too.
 
override void Start ()
 Initializes the requirement to start tracking the process.
 
override void Stop ()
 Stops the requirement from tracking the process.
 

Private Member Functions

void OnInteraction (Grabbable grabbable)
 
void Subscribe ()
 
void Unsubscribe ()
 

Private Attributes

InteractType interactType
 
bool performedInteraction = false
 

Member Enumeration Documentation

◆ InteractType

Enumerator
Grab 
Release 
Click 
Drag 

Member Function Documentation

◆ IsFulfilled()

override bool ManoMotion.Instructions.InteractionRequirement.IsFulfilled ( )
inlinevirtual

◆ OnInteraction()

void ManoMotion.Instructions.InteractionRequirement.OnInteraction ( Grabbable grabbable)
inlineprivate

◆ Start()

override void ManoMotion.Instructions.InteractionRequirement.Start ( )
inlinevirtual

◆ Stop()

override void ManoMotion.Instructions.InteractionRequirement.Stop ( )
inlinevirtual

◆ Subscribe()

void ManoMotion.Instructions.InteractionRequirement.Subscribe ( )
inlineprivate

◆ Unsubscribe()

void ManoMotion.Instructions.InteractionRequirement.Unsubscribe ( )
inlineprivate

Member Data Documentation

◆ interactType

InteractType ManoMotion.Instructions.InteractionRequirement.interactType
private

◆ performedInteraction

bool ManoMotion.Instructions.InteractionRequirement.performedInteraction = false
private