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

Attached to player, player can interact with items in room that contain the tag "object" More...

Inherits MonoBehaviour.

Public Member Functions

delegate void OnRotateHandler ()
 
delegate void OnTurnOnHandler ()
 
void ShootRay ()
 Shoots out a Raycast if the player is not interacting with anything to look for an item to interact with. More...
 
void Drop ()
 Releases held object- changes player state to not interacting More...
 
void Freeze (string objName)
 

Static Public Member Functions

static void InvokeRotation ()
 
static void InvokeTurnOnInteraction ()
 

Public Attributes

GameObject selectedItem
 
bool greaterControl
 
InteractStates currentAction
 

Events

static OnRotateHandler OnRotateEvent
 
static OnTurnOnHandler OnTurnOnEvent
 

Detailed Description

Attached to player, player can interact with items in room that contain the tag "object"

Member Function Documentation

void Cyan.Interact.Drop ( )

Releases held object- changes player state to not interacting

void Cyan.Interact.Freeze ( string  objName)
static void Cyan.Interact.InvokeRotation ( )
static
static void Cyan.Interact.InvokeTurnOnInteraction ( )
static
delegate void Cyan.Interact.OnRotateHandler ( )
delegate void Cyan.Interact.OnTurnOnHandler ( )
void Cyan.Interact.ShootRay ( )

Shoots out a Raycast if the player is not interacting with anything to look for an item to interact with.

Otherwise stops any interactions AS long as the item won't clip through a wall

Member Data Documentation

InteractStates Cyan.Interact.currentAction
bool Cyan.Interact.greaterControl
GameObject Cyan.Interact.selectedItem

Event Documentation

OnRotateHandler Cyan.Interact.OnRotateEvent
static
OnTurnOnHandler Cyan.Interact.OnTurnOnEvent
static

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