ORK Framework  2.26.1
API Documentation
ORKFramework.Behaviours.InteractionController Class Reference
Inheritance diagram for ORKFramework.Behaviours.InteractionController:

Public Member Functions

virtual void SortInteractions ()
 
virtual void Remove (BaseInteraction interaction)
 
virtual bool InteractionAvailable (InteractionType type, string customType)
 
virtual BaseInteraction GetFirstAvailable (InteractionType type, string customType)
 
virtual bool Interact ()
 
virtual bool Interact (InteractionType type, string customType)
 

Public Attributes

bool interactWithNearest = false
 
bool nearestIgnoreHeightDistance = false
 
Vector3 nearestOffset = Vector3.zero
 

Protected Member Functions

virtual void Start ()
 
virtual void OnTriggerEnter (Collider other)
 
virtual void OnTriggerExit (Collider other)
 
virtual void OnTriggerEnter2D (Collider2D other)
 
virtual void OnTriggerExit2D (Collider2D other)
 
virtual IEnumerator BlockInteraction ()
 
virtual void OnDrawGizmos ()
 
virtual void OnDrawGizmosSelected ()
 

Protected Attributes

bool interacting = false
 
List< BaseInteractionlist = new List<BaseInteraction>()
 
List< BaseInteractiontriggerList = new List<BaseInteraction>()
 
InteractionDistanceSorter sorter
 
Vector3 lastPosition
 

Properties

virtual int AvailableCount [get]