Cornell Tech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Interact Class Reference

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

Inheritance diagram for Interact:

Public Member Functions

void 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 More...
 

Public Attributes

GameObject selectedItem
 
bool greaterControl
 
InteractStates currentAction
 
bool gotMovementTip = false
 
bool gotHoldTip = false
 
bool gotInteractTip = false
 
bool gotDrawerTip = false
 
bool gotCabinetTip = false
 

Detailed Description

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

Member Function Documentation

void 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 Interact.currentAction
bool Interact.gotCabinetTip = false
bool Interact.gotDrawerTip = false
bool Interact.gotHoldTip = false
bool Interact.gotInteractTip = false
bool Interact.gotMovementTip = false
bool Interact.greaterControl
GameObject Interact.selectedItem

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