C# 클래스 DW_WaterSplash, Feiko-Unity-OLD

상속: MonoBehaviour
파일 보기 프로젝트 열기: cortexarts/Feiko-Unity-OLD

공개 프로퍼티들

프로퍼티 타입 설명
SplashPrefab ParticleSystem
SplashSounds UnityEngine.AudioClip[]
SplashThreshold float

공개 메소드들

메소드 설명
OnFluidVolumeEnter ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject enters the water.

OnFluidVolumeExit ( IDynamicWaterFluidVolume eventWater ) : void

Called when BuoyantObject exits the water.

비공개 메소드들

메소드 설명
SpawnSplash ( ParticleSystem splashPrefab, Vector3 position ) : void

메소드 상세

OnFluidVolumeEnter() 공개 메소드

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

OnFluidVolumeExit() 공개 메소드

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

프로퍼티 상세

SplashPrefab 공개적으로 프로퍼티

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

SplashSounds 공개적으로 프로퍼티

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

SplashThreshold 공개적으로 프로퍼티

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