CornellTech-Unity-project
1.0
|
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 |
Attached to player, player can interact with items in room that contain the tag "object"
void Cyan.Interact.Drop | ( | ) |
Releases held object- changes player state to not interacting
void Cyan.Interact.Freeze | ( | string | objName | ) |
|
static |
|
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
InteractStates Cyan.Interact.currentAction |
bool Cyan.Interact.greaterControl |
GameObject Cyan.Interact.selectedItem |
|
static |
|
static |