Show / Hide Table of Contents

Class Switch

A toggleable switch for your game scene.

Inheritance
System.Object
Interactable
Switch
Implements
ILockable
IInteractable
Inherited Members
Interactable.propName
Interactable.tmpName
Interactable.propType
Interactable.useDuration
Interactable.movement
Interactable.hingeAxis
Interactable.linkedProp
Interactable._canLock
Interactable._startsLocked
Interactable._lockState
Interactable.key
Interactable.audioSource
Interactable.onLockedAudio
Interactable.onLockAudio
Interactable.onUnlockAudio
Interactable.showDebug
Interactable.isMoving
Interactable.action
Interactable.initialPosition
Interactable.initialRotation
Interactable.propOpen
Interactable.propClosed
Interactable.operationalSpace
Interactable.SetPropName(String)
Interactable.SetTempPropName(String)
Interactable.GetPropName()
Interactable.GetTempPropName()
Interactable.GetProp()
Interactable.SetProp(IProp)
Interactable.GetPropType()
Interactable.RequiresGameObject
Interactable.Use(Transform)
Interactable.CalculatePosition(RotationState)
Interactable.CalculateRotation(RotationState)
Interactable.ToggleLock()
Interactable.Lock()
Interactable.Unlock()
Interactable.CanLock()
Interactable.IsLocked()
Interactable.LockOnStart(Boolean)
Namespace: ShadowBox.Interactions
Assembly: cs.temp.dll.dll
Syntax
public class Switch : Interactable, ILockable, IInteractable

Constructors

Switch()

Declaration
public Switch()

Fields

onAfterPressAudio

Declaration
public AudioClip onAfterPressAudio
Field Value
Type Description
AudioClip

onPressAudio

Declaration
public AudioClip onPressAudio
Field Value
Type Description
AudioClip

startingState

Declaration
public ToggleState startingState
Field Value
Type Description
ToggleState

state

Declaration
public ToggleState state
Field Value
Type Description
ToggleState

switchType

Declaration
public ToggleType switchType
Field Value
Type Description
ToggleType

toggleOff

Declaration
public Quaternion toggleOff
Field Value
Type Description
Quaternion

toggleOn

Declaration
public Quaternion toggleOn
Field Value
Type Description
Quaternion

Methods

SetToOne()

Declaration
public override void SetToOne()
Overrides
Interactable.SetToOne()

SetToZero()

Declaration
public override void SetToZero()
Overrides
Interactable.SetToZero()

UpdateActionDescription()

Declaration
public override void UpdateActionDescription()
Overrides
Interactable.UpdateActionDescription()

Use()

Declaration
public override void Use()
Overrides
Interactable.Use()

Implements

ILockable
IInteractable
Back to top Generated by DocFX