Class InteractionButtonController
- Namespace
- UI
Handles the behaviour of the interaction buttons, such as enabling and disabling when appropriate or highlighting the combine button in orange when a combination would be possible.
It also allows for grabbed objects to be rotatable.
public class InteractionButtonController : MonoBehaviour
- Inheritance
-
objectInteractionButtonController
Fields
grabbedObjectRotationSpeed
The speed that a grabbed object is rotated.
public float grabbedObjectRotationSpeed
Field Value
- float
Default is 0.2f.
Methods
ActivateInteractButtons()
Activates the interaction buttons for the user to see.
public void ActivateInteractButtons()
DeactivateInteractButtons()
Deactivates the interaction buttons.
public void DeactivateInteractButtons()
GrabRelease()
Handles what happenes when the grab/Release button is called depending on its current state.
public void GrabRelease()