Feel  5.1
The best way to improve your game's feel and make it extra juicy
Lofelt.NiceVibrations.CarDemoManager Class Reference
Inheritance diagram for Lofelt.NiceVibrations.CarDemoManager:
Lofelt.NiceVibrations.DemoManager

Public Attributes

MMKnob Knob
 
float MinimumKnobValue = 0.1f
 
float MaximumPowerDuration = 10f
 
float ChargingSpeed = 2f
 
float CarSpeed = 0f
 
float Power
 
float StartClickDuration = 0.2f
 
float DentDuration = 0.10f
 
List< float > Dents
 
AudioSource CarEngineAudioSource
 
Transform LeftWheel
 
Transform RightWheel
 
RectTransform CarBody
 
Vector3 WheelRotationSpeed = new Vector3(0f, 0f, 50f)
 
GameObject ReloadingPrompt
 
AnimationCurve StartClickCurve
 
MMProgressBar PowerBar
 
List< PowerBarElementSpeedBars
 
Color ActiveColor
 
Color InactiveColor
 
bool _carStarted = false
 
float _carStartedAt = 0f
 
float _lastStartClickAt = 0f
 
- Public Attributes inherited from Lofelt.NiceVibrations.DemoManager
AudioSource DebugAudioEmphasis
 
AudioSource DebugAudioContinuous
 
MMUIShaker Logo
 

Protected Member Functions

virtual void Awake ()
 
virtual void Update ()
 
virtual void HandlePower ()
 
virtual void UpdateCar ()
 
virtual void UpdateUI ()
 

Protected Attributes

float _knobValueLastFrame
 
float _lastDentAt = 0f
 
float _knobValue
 
Vector3 _initialCarPosition
 
Vector3 _carPosition
 

Member Function Documentation

◆ Awake()

virtual void Lofelt.NiceVibrations.CarDemoManager.Awake ( )
protectedvirtual

◆ HandlePower()

virtual void Lofelt.NiceVibrations.CarDemoManager.HandlePower ( )
protectedvirtual

◆ Update()

virtual void Lofelt.NiceVibrations.CarDemoManager.Update ( )
protectedvirtual

◆ UpdateCar()

virtual void Lofelt.NiceVibrations.CarDemoManager.UpdateCar ( )
protectedvirtual

◆ UpdateUI()

virtual void Lofelt.NiceVibrations.CarDemoManager.UpdateUI ( )
protectedvirtual

Member Data Documentation

◆ _carPosition

Vector3 Lofelt.NiceVibrations.CarDemoManager._carPosition
protected

◆ _carStarted

bool Lofelt.NiceVibrations.CarDemoManager._carStarted = false

◆ _carStartedAt

float Lofelt.NiceVibrations.CarDemoManager._carStartedAt = 0f

◆ _initialCarPosition

Vector3 Lofelt.NiceVibrations.CarDemoManager._initialCarPosition
protected

◆ _knobValue

float Lofelt.NiceVibrations.CarDemoManager._knobValue
protected

◆ _knobValueLastFrame

float Lofelt.NiceVibrations.CarDemoManager._knobValueLastFrame
protected

◆ _lastDentAt

float Lofelt.NiceVibrations.CarDemoManager._lastDentAt = 0f
protected

◆ _lastStartClickAt

float Lofelt.NiceVibrations.CarDemoManager._lastStartClickAt = 0f

◆ ActiveColor

Color Lofelt.NiceVibrations.CarDemoManager.ActiveColor

◆ CarBody

RectTransform Lofelt.NiceVibrations.CarDemoManager.CarBody

◆ CarEngineAudioSource

AudioSource Lofelt.NiceVibrations.CarDemoManager.CarEngineAudioSource

◆ CarSpeed

float Lofelt.NiceVibrations.CarDemoManager.CarSpeed = 0f

◆ ChargingSpeed

float Lofelt.NiceVibrations.CarDemoManager.ChargingSpeed = 2f

◆ DentDuration

float Lofelt.NiceVibrations.CarDemoManager.DentDuration = 0.10f

◆ Dents

List<float> Lofelt.NiceVibrations.CarDemoManager.Dents

◆ InactiveColor

Color Lofelt.NiceVibrations.CarDemoManager.InactiveColor

◆ Knob

MMKnob Lofelt.NiceVibrations.CarDemoManager.Knob

◆ LeftWheel

Transform Lofelt.NiceVibrations.CarDemoManager.LeftWheel

◆ MaximumPowerDuration

float Lofelt.NiceVibrations.CarDemoManager.MaximumPowerDuration = 10f

◆ MinimumKnobValue

float Lofelt.NiceVibrations.CarDemoManager.MinimumKnobValue = 0.1f

◆ Power

float Lofelt.NiceVibrations.CarDemoManager.Power

◆ PowerBar

MMProgressBar Lofelt.NiceVibrations.CarDemoManager.PowerBar

◆ ReloadingPrompt

GameObject Lofelt.NiceVibrations.CarDemoManager.ReloadingPrompt

◆ RightWheel

Transform Lofelt.NiceVibrations.CarDemoManager.RightWheel

◆ SpeedBars

List<PowerBarElement> Lofelt.NiceVibrations.CarDemoManager.SpeedBars

◆ StartClickCurve

AnimationCurve Lofelt.NiceVibrations.CarDemoManager.StartClickCurve

◆ StartClickDuration

float Lofelt.NiceVibrations.CarDemoManager.StartClickDuration = 0.2f

◆ WheelRotationSpeed

Vector3 Lofelt.NiceVibrations.CarDemoManager.WheelRotationSpeed = new Vector3(0f, 0f, 50f)

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