CornellTech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Cyan.Actions Class Reference

Easy access for bot actions? More...

Inherits MonoBehaviour.

Public Member Functions

void Interact ()
 Calls the ShootRay() function from the Interact script, shoots an interaction check So if you are holding an item, you should release it, and if you arent, checks if there is anything to grab If you can grab an item, the item will be parented to the player/agent More...
 
void ForceGrab (string itemName)
 Forcefully looks for an item in the scene by its name and makes it the selected/parented item More...
 
void ForceDrop ()
 Forecfully drops the item being held, even if the drop location is not a good spot More...
 

Public Attributes

Interact interact
 

Detailed Description

Easy access for bot actions?

Member Function Documentation

void Cyan.Actions.ForceDrop ( )

Forecfully drops the item being held, even if the drop location is not a good spot

void Cyan.Actions.ForceGrab ( string  itemName)

Forcefully looks for an item in the scene by its name and makes it the selected/parented item

Parameters
itemNamename of the item in the scene
void Cyan.Actions.Interact ( )

Calls the ShootRay() function from the Interact script, shoots an interaction check So if you are holding an item, you should release it, and if you arent, checks if there is anything to grab If you can grab an item, the item will be parented to the player/agent

Member Data Documentation

Interact Cyan.Actions.interact

The documentation for this class was generated from the following file: