Battle Talent  V11
Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes | Events | List of all members
CrossLink.PhysicsButton Class Reference

Inherits MonoBehaviour.

Public Member Functions

void Lock (bool l)
 

Public Attributes

Rigidbody rb
 
Renderer buttonRenderer
 
Color unlockColor
 
Color lockColor
 
float distanceToEngage = 0.0075f
 
bool buttonDown = false
 
bool buttonUp = false
 
bool buttonIsPushed = false
 
bool buttonWasPushed = false
 
float lockAfterTriggerSec = 0
 
ConfigurableJoint lockJoint
 
SoundEffectInfo pressSound
 

Protected Attributes

Transform initialPosition
 
float minDistance = 0.001f
 
float currentDistance = 100
 
float lastDistance = 100
 

Static Protected Attributes

const float PositionMagic = 1000f
 

Events

System.Action PressDownEvent
 
System.Action PressUpEvent