Interactable that also manages a lever handle GameObject that rotates when activated. More...
Public Member Functions | |
override void | Interact (Vector3 playerPosition, CompassDirection playerCompassDirection) |
Rotate the lever. | |
void | MoveAsPairedLever () |
Flip this lever, usually called in conjunction with another lever (such as on opposite sides of a door) to keep them in sync. | |
virtual void | FlipLeverImmediate () |
Flips the lever immediately without animation. | |
Protected Member Functions | |
virtual IEnumerator | PullLever (Vector3 playerPosition, CompassDirection playerCompassDirection) |
virtual IEnumerator | AnimateLever () |
Properties | |
bool | IsFlipped [get] |
Transform | Handle [get, set] |
float | RotationAngle [get, set] |
float | RotationDuration [get, set] |
Lever | PairedLever [get, set] |
![]() | |
bool | DisableAfterUse [get] |
Additional Inherited Members | |
![]() | |
System.Action< Vector3 > | Interacted = null |
Interactable that also manages a lever handle GameObject that rotates when activated.
Can be paired with another lever to keep their positions in sync.
|
inlineprotectedvirtual |
|
inlinevirtual |
Flips the lever immediately without animation.
|
inlinevirtual |
Rotate the lever.
When finished, invoke the interaction.
Reimplemented from PixelCrushers.GridController.Interactable.
|
inline |
Flip this lever, usually called in conjunction with another lever (such as on opposite sides of a door) to keep them in sync.
|
inlineprotectedvirtual |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |