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

Handles the interaction moments by keeping track of when things are grabbed, dropped etc More...

Inherits MonoBehaviour.

Public Member Functions

void DrawerInteractionCheck (int diosIndex)
 checks if the player was interacting with a drawer, from the running playData. More...
 
void AllInteractionChecks (int diosIndex)
 Calls for all the interaction checks - if something is to be grabbed, dropped, rotated, pulled, or turned on/off Purpose is to be called from BotMovement in ElmerUpdater Coroutine - its shitty design I know - idk how to code nicely More...
 
void GetNewPlayData (string newTraj)
 

Public Attributes

GeneralTimer genTimer
 

Detailed Description

Handles the interaction moments by keeping track of when things are grabbed, dropped etc

Member Function Documentation

void Cyan.Elmer.BotInteraction.AllInteractionChecks ( int  diosIndex)

Calls for all the interaction checks - if something is to be grabbed, dropped, rotated, pulled, or turned on/off Purpose is to be called from BotMovement in ElmerUpdater Coroutine - its shitty design I know - idk how to code nicely

Parameters
diosIndex
void Cyan.Elmer.BotInteraction.DrawerInteractionCheck ( int  diosIndex)

checks if the player was interacting with a drawer, from the running playData.

and updates the position of the drawer if the state is pulling drawers does not have a drawer index bc i am just always checking if a drawer is being interacted with - and if so - updating the position of it from pdata Note that a drawer only need to be interacted with once, to make it the selected item, and then interacted with once again to release it as the selected item

Parameters
diosIndex
void Cyan.Elmer.BotInteraction.GetNewPlayData ( string  newTraj)

Member Data Documentation

GeneralTimer Cyan.Elmer.BotInteraction.genTimer

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