C# Class DW_WaterSplash, Feiko-Unity-OLD

Inheritance: MonoBehaviour
Afficher le fichier Open project: cortexarts/Feiko-Unity-OLD

Méthodes publiques

Свойство Type Description
SplashPrefab ParticleSystem
SplashSounds UnityEngine.AudioClip[]
SplashThreshold float

Méthodes publiques

Méthode Description
OnFluidVolumeEnter ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject enters the water.

OnFluidVolumeExit ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject exits the water.

Private Methods

Méthode Description
SpawnSplash ( ParticleSystem splashPrefab, Vector3 position ) : void

Method Details

OnFluidVolumeEnter() public méthode

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

OnFluidVolumeExit() public méthode

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

Property Details

SplashPrefab public_oe property

The ParticleSystem prefab that will be instantiated on impact.
public ParticleSystem SplashPrefab
Résultat ParticleSystem

SplashSounds public_oe property

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

SplashThreshold public_oe property

Minimum rigibody.velocity.y value to instantiate splash.
public float SplashThreshold
Résultat float