Highroad Engine v1.3
|
This class handles vehicle's sound : motor sound and crash sound More...
Public Member Functions | |
override void | Initialization () |
Use this method to initialize objects in subclasses More... | |
override void | Update () |
Update this method in subclasses More... | |
override void | OnVehicleCollisionEnter (Collision other) |
Use this method to describe what happens when the vehicle collides with something More... | |
Public Member Functions inherited from MoreMountains.HighroadEngine.SolidBehaviourExtender | |
virtual void | Start () |
Controller's initialization More... | |
Public Attributes | |
AudioClip | EngineSound |
AudioClip | CrashSound |
float | EngineVolume = 0.5f |
Sound volume of the engine. More... | |
float | MinimalCrashSpeed = 2.0f |
No crash sound when vehicule is below this speed. More... | |
float | EngineMaxPitch = 5.5f |
Maximum pitch value for the engine sound. More... | |
float | SpeedFactor = 0.1f |
Speed is multiplied by this factor when calculating engine sound pitch value. More... | |
Protected Attributes | |
SoundManager | _soundManager |
AudioSource | _engineSound |
float | _engineSoundPitch |
Protected Attributes inherited from MoreMountains.HighroadEngine.SolidBehaviourExtender | |
SolidController | _controller |
This class handles vehicle's sound : motor sound and crash sound
|
virtual |
Use this method to initialize objects in subclasses
Reimplemented from MoreMountains.HighroadEngine.SolidBehaviourExtender.
|
virtual |
Use this method to describe what happens when the vehicle collides with something
tag | Objet en collision |
Reimplemented from MoreMountains.HighroadEngine.SolidBehaviourExtender.
|
virtual |
Update this method in subclasses
Implements MoreMountains.HighroadEngine.SolidBehaviourExtender.
|
protected |
|
protected |
|
protected |
AudioClip MoreMountains.HighroadEngine.SolidSoundBehaviour.CrashSound |
float MoreMountains.HighroadEngine.SolidSoundBehaviour.EngineMaxPitch = 5.5f |
Maximum pitch value for the engine sound.
AudioClip MoreMountains.HighroadEngine.SolidSoundBehaviour.EngineSound |
float MoreMountains.HighroadEngine.SolidSoundBehaviour.EngineVolume = 0.5f |
Sound volume of the engine.
float MoreMountains.HighroadEngine.SolidSoundBehaviour.MinimalCrashSpeed = 2.0f |
No crash sound when vehicule is below this speed.
float MoreMountains.HighroadEngine.SolidSoundBehaviour.SpeedFactor = 0.1f |
Speed is multiplied by this factor when calculating engine sound pitch value.