C# Class DW_WaterSplash, Feiko-Unity-OLD

Inheritance: MonoBehaviour
Datei anzeigen Open project: cortexarts/Feiko-Unity-OLD

Public Properties

Property Type Description
SplashPrefab ParticleSystem
SplashSounds UnityEngine.AudioClip[]
SplashThreshold float

Public Methods

Method Description
OnFluidVolumeEnter ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject enters the water.

OnFluidVolumeExit ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject exits the water.

Private Methods

Method Description
SpawnSplash ( ParticleSystem splashPrefab, Vector3 position ) : void

Method Details

OnFluidVolumeEnter() public method

Called when BuoyantObject enters the water.
public OnFluidVolumeEnter ( IDynamicWaterFluidVolume eventWater ) : void
eventWater IDynamicWaterFluidVolume /// The FluidVolume which the object has entered. ///
return void

OnFluidVolumeExit() public method

Called when BuoyantObject exits the water.
public OnFluidVolumeExit ( IDynamicWaterFluidVolume eventWater ) : void
eventWater IDynamicWaterFluidVolume /// The FluidVolume which the object has left. ///
return void

Property Details

SplashPrefab public_oe property

The ParticleSystem prefab that will be instantiated on impact.
public ParticleSystem SplashPrefab
return ParticleSystem

SplashSounds public_oe property

The AudioClip[] array, from which one random sound will be played upon impact.
public AudioClip[],UnityEngine SplashSounds
return UnityEngine.AudioClip[]

SplashThreshold public_oe property

Minimum rigibody.velocity.y value to instantiate splash.
public float SplashThreshold
return float