Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DetonatorSound Class Reference
Inheritance diagram for DetonatorSound:
DetonatorComponent

Public Member Functions

override void Explode ()
 
override void Init ()
 
void Reset ()
 
- Public Member Functions inherited from DetonatorComponent
Detonator MyDetonator ()
 
void SetStartValues ()
 

Public Attributes

float distanceThreshold = 50f
 
AudioClip[] farSounds
 
float maxVolume = 1f
 
float minVolume = .4f
 
AudioClip[] nearSounds
 
float rolloffFactor = 0.5f
 
- Public Attributes inherited from DetonatorComponent
Color color = Color.white
 
float detail = 1f
 
float detailThreshold
 
bool detonatorControlled = true
 
float duration = 2f
 
float explodeDelayMax = 0f
 
float explodeDelayMin = 0f
 
Vector3 force = Vector3.zero
 
Vector3 localPosition = Vector3.zero
 
bool on = true
 
float size = 1f
 
Color startColor = Color.white
 
float startDetail = 1f
 
float startDuration = 2f
 
Vector3 startForce = Vector3.zero
 
Vector3 startLocalPosition = Vector3.zero
 
float startSize = 1f
 
Vector3 startVelocity = Vector3.zero
 
float timeScale = 1f
 
Vector3 velocity = Vector3.zero
 

Static Public Attributes

static System.Func< float > GetSoundVolume = () => { return 1f; }
 

Member Function Documentation

override void DetonatorSound.Explode ( )
inlinevirtual

Implements DetonatorComponent.

override void DetonatorSound.Init ( )
inlinevirtual

Implements DetonatorComponent.

void DetonatorSound.Reset ( )
inline

Member Data Documentation

float DetonatorSound.distanceThreshold = 50f
AudioClip [] DetonatorSound.farSounds
System.Func<float> DetonatorSound.GetSoundVolume = () => { return 1f; }
static
float DetonatorSound.maxVolume = 1f
float DetonatorSound.minVolume = .4f
AudioClip [] DetonatorSound.nearSounds
float DetonatorSound.rolloffFactor = 0.5f

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